A FETCH with CHANGEDSINCE presents its mod-sequence to the read scope, so a replica must have that change before it answers, as a JMAP sinceState already did. replica_cluster_tests covers test 11: with the replica's replay paused, a write on one node is read back through a second store with its own marks, sharing through Redis. Composite stores nest store futures deeply enough to pass rustc's default query depth once both postgres and redis are compiled in, so the server crates raise their recursion limit.
34 lines
753 B
Rust
34 lines
753 B
Rust
/*
|
|
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL
|
|
*/
|
|
|
|
// inbuxa: composite stores (sharded members, read replicas) nest store
|
|
// futures deeply enough to pass rustc's default query depth
|
|
#![recursion_limit = "512"]
|
|
|
|
#![warn(clippy::large_futures)]
|
|
|
|
pub mod api;
|
|
pub mod auth;
|
|
pub mod branding; // inbuxa: branding
|
|
pub mod form;
|
|
pub mod live; // inbuxa: monitoring (MON-20 to MON-24)
|
|
pub mod request;
|
|
pub mod scim; // inbuxa: SCIM 2.0 provisioning
|
|
|
|
use common::Inner;
|
|
use std::sync::Arc;
|
|
|
|
#[derive(Clone)]
|
|
pub struct HttpSessionManager {
|
|
pub inner: Arc<Inner>,
|
|
}
|
|
|
|
impl HttpSessionManager {
|
|
pub fn new(inner: Arc<Inner>) -> Self {
|
|
Self { inner }
|
|
}
|
|
}
|