mirror of
https://github.com/atuinsh/atuin.git
synced 2025-08-14 09:18:46 +02:00
fix: save sync time in daemon (#2029)
This commit is contained in:
@ -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??;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user