We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f8954db + 163e369 commit 21861a6Copy full SHA for 21861a6
libsql-server/src/lib.rs
@@ -368,6 +368,8 @@ where
368
tracing::info!("setting checkpoint interval to {:?}", period);
369
let mut interval = interval(period);
370
interval.set_missed_tick_behavior(MissedTickBehavior::Delay);
371
+ // Make sure that we don't checkpoint immediately after startup
372
+ interval.tick().await;
373
let mut retry: Option<Duration> = None;
374
loop {
375
if let Some(retry) = retry.take() {
0 commit comments