aboutsummaryrefslogtreecommitdiff
path: root/src/table
diff options
context:
space:
mode:
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();
}
}