avoid using layout_watch in System directly

This commit is contained in:
Alex Auvolat
2023-11-08 16:41:00 +01:00
parent 12d1dbfc6b
commit 4a9c94514f
11 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -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),