1
1
mirror of https://github.com/ellie/atuin.git synced 2024-10-26 15:23:31 +03:00

fix: save sync time in daemon (#2029)

This commit is contained in:
Ellie Huxtable 2024-05-18 09:46:48 +07:00 committed by GitHub
parent 64b7581644
commit 95c9168944
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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??;
}
}
}