aboutsummaryrefslogtreecommitdiff
path: root/src/table/sync.rs
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2022-10-02 16:41:06 +0200
committerAlex <alex@adnab.me>2022-10-02 16:41:06 +0200
commita096ced35562bd0a8877a1ee2f755be1edafe343 (patch)
treeb2a427054a30f23d512d63d895a4ddd8a98f46e2 /src/table/sync.rs
parente21b672c96da3c6d01a5ef964aa0ad7a38f8e74c (diff)
parentad917ffd3f76316e48b89ff17e2f8a600a269481 (diff)
downloadgarage-a096ced35562bd0a8877a1ee2f755be1edafe343.tar.gz
garage-a096ced35562bd0a8877a1ee2f755be1edafe343.zip
Merge pull request 'Fix instant substractions that might have panicked' (#398) from fix-time into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/398
Diffstat (limited to 'src/table/sync.rs')
-rw-r--r--src/table/sync.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/table/sync.rs b/src/table/sync.rs
index e34aa8d7..9d79d856 100644
--- a/src/table/sync.rs
+++ b/src/table/sync.rs
@@ -607,7 +607,7 @@ impl<F: TableSchema + 'static, R: TableReplication + 'static> Worker for SyncWor
self.add_full_sync();
}
},
- _ = tokio::time::sleep(self.next_full_sync - Instant::now()) => {
+ _ = tokio::time::sleep_until(self.next_full_sync.into()) => {
self.add_full_sync();
}
}