Skip to content

Commit cc8550a

Browse files
authored
Delay s3sync polling using tokio sleep (#101)
Fixes #90
1 parent 31273c2 commit cc8550a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ fn s3_sync() -> (JoinHandle<()>, oneshot::Receiver<()>, oneshot::Sender<()>) {
185185
});
186186

187187
loop {
188+
tokio::time::sleep(Duration::from_secs(1)).await;
188189
scheduler.run_pending().await;
189190
match AssertUnwindSafe(|| inbox_rx.try_recv())() {
190191
Ok(_) => break,

0 commit comments

Comments
 (0)