Skip to content

Commit

Permalink
checkout latest snapshot in continuous mode
Browse files Browse the repository at this point in the history
  • Loading branch information
losfair committed Nov 9, 2023
1 parent 04bcbbd commit 027fed8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion denokv/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ async fn run_sync(
ttc.ensure_initial_snapshot_completed(&source).await?;

log::info!("Initial snapshot is complete, starting sync.");
ttc.checkout([0xffu8; 10])?;
drop(initial_sync_ok_tx);

loop {
Expand All @@ -308,7 +309,7 @@ async fn run_sync(
return Ok(());
}

// In continuous mode, advance snapshot to latest version
// In continuous mode, always advance snapshot to latest version
ttc.checkout([0xffu8; 10])?;

let sleep_duration = std::time::Duration::from_millis(
Expand Down

0 comments on commit 027fed8

Please sign in to comment.