diff options
author | Alex Auvolat <alex@adnab.me> | 2023-11-08 16:41:00 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-11-08 16:41:00 +0100 |
commit | 4a9c94514f49aa4e9880a8e0f5cf5a52d11ae993 (patch) | |
tree | 40a54f544efc25dc7973f0e3766bb396feebbc24 /src/table/sync.rs | |
parent | 12d1dbfc6b884be488e2d79c0b9e3c47490f5442 (diff) | |
download | garage-4a9c94514f49aa4e9880a8e0f5cf5a52d11ae993.tar.gz garage-4a9c94514f49aa4e9880a8e0f5cf5a52d11ae993.zip |
avoid using layout_watch in System directly
Diffstat (limited to 'src/table/sync.rs')
-rw-r--r-- | src/table/sync.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/table/sync.rs b/src/table/sync.rs index b2600013..65eff7cd 100644 --- a/src/table/sync.rs +++ b/src/table/sync.rs @@ -92,7 +92,7 @@ impl<F: TableSchema, R: TableReplication> TableSyncer<F, R> { bg.spawn_worker(SyncWorker { syncer: self.clone(), layout_watch: self.system.layout_watch.clone(), - layout: self.system.layout_watch.borrow().clone(), + layout: self.system.cluster_layout().clone(), add_full_sync_rx, todo: vec![], next_full_sync: Instant::now() + Duration::from_secs(20), |