Fix instant substractions that might have panicked

This commit is contained in:
Alex Auvolat
2022-09-29 15:53:54 +02:00
parent 497164d782
commit ad917ffd3f
4 changed files with 16 additions and 8 deletions
+1 -1
View File
@@ -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();
}
}