JMAP Registry API implementation - part 13

This commit is contained in:
mdecimus
2026-03-11 16:33:49 +01:00
parent a747239b61
commit 45af5efa4c
44 changed files with 2476 additions and 473 deletions

View File

@@ -10,12 +10,12 @@ use store::{InMemoryStore, registry::bootstrap::Bootstrap};
#[allow(unreachable_patterns)]
impl Coordinator {
pub async fn build(bp: &mut Bootstrap, in_memory: &InMemoryStore) -> Option<Self> {
pub async fn build(bp: &mut Bootstrap, _in_memory: &InMemoryStore) -> Option<Self> {
let result = match bp.setting_infallible::<structs::Coordinator>().await {
structs::Coordinator::Disabled => Ok(Coordinator::None),
#[cfg(feature = "redis")]
structs::Coordinator::Default => {
if let InMemoryStore::Redis(redis) = &in_memory {
if let InMemoryStore::Redis(redis) = &_in_memory {
Ok(Coordinator::Redis(redis.clone()))
} else {
Err(