aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/table_sync.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/table_sync.rs b/src/table_sync.rs
index bfbde285..aa0610e5 100644
--- a/src/table_sync.rs
+++ b/src/table_sync.rs
@@ -18,7 +18,7 @@ use crate::membership::Ring;
use crate::table::*;
const MAX_DEPTH: usize = 16;
-const SCAN_INTERVAL: Duration = Duration::from_secs(1800);
+const SCAN_INTERVAL: Duration = Duration::from_secs(3600);
const CHECKSUM_CACHE_TIMEOUT: Duration = Duration::from_secs(1800);
const TABLE_SYNC_RPC_TIMEOUT: Duration = Duration::from_secs(30);
@@ -131,6 +131,13 @@ where
)
.await;
+ let s3 = syncer.clone();
+ table.system.background.spawn(async move {
+ tokio::time::delay_for(Duration::from_secs(20)).await;
+ s3.add_full_scan().await;
+ Ok(())
+ });
+
syncer
}