aboutsummaryrefslogtreecommitdiff
path: root/src/table
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-09-29 15:53:54 +0200
committerAlex Auvolat <alex@adnab.me>2022-09-29 15:53:54 +0200
commitad917ffd3f76316e48b89ff17e2f8a600a269481 (patch)
tree4411b84a2021eda2e98e38c4549ba00dc71dcef6 /src/table
parent497164d78253fa1dd3cdbfc8a5267edaab4040f3 (diff)
downloadgarage-fix-time.tar.gz
garage-fix-time.zip
Fix instant substractions that might have panickedfix-time
Diffstat (limited to 'src/table')
-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();
}
}