Skip to content

Commit

Permalink
fix: save sync time in daemon (#2029)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellie committed May 18, 2024
1 parent 64b7581 commit 95c9168
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/atuin-daemon/src/server/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ pub async fn worker(
if ticker.period().as_secs() != settings.daemon.sync_frequency {
ticker = time::interval(time::Duration::from_secs(settings.daemon.sync_frequency));
}

// store sync time
tokio::task::spawn_blocking(Settings::save_sync_time).await??;
}
}
}

0 comments on commit 95c9168

Please sign in to comment.