Clone config

This commit is contained in:
Eric Eastwood
2026-06-05 14:50:15 -05:00
parent 7a15f0185c
commit 24e5aa1026
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -15,7 +15,7 @@
use pyo3::prelude::*;
#[derive(FromPyObject)]
#[derive(FromPyObject, Clone)]
pub struct SynapseConfig {
pub experimental: ExperimentalConfig,
}
@@ -28,7 +28,7 @@ pub struct SynapseConfig {
// TrustedPrivateChat,
// }
#[derive(FromPyObject)]
#[derive(FromPyObject, Clone)]
pub struct ExperimentalConfig {
pub msc3881_enabled: bool,
pub msc3575_enabled: bool,
+2 -2
View File
@@ -51,13 +51,13 @@ impl RustHandlers {
// Store is shared across all of the handlers so let's use an `Arc`
let store = Arc::new(Store {
config,
config: config.clone(),
db_pool: Box::new(db_pool),
});
Ok(RustHandlers {
versions: versions::VersionsHandler {
config,
config: config.clone(),
store: Arc::clone(&store),
},
})