diff options
| author | Ellie Huxtable <ellie@elliehuxtable.com> | 2024-05-18 09:46:48 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-18 09:46:48 +0700 |
| commit | 95c91689441c66228cd8eb2e94e9b43a848d75f4 (patch) | |
| tree | 63a275229c4bb67634e8509f272e00471b00d6f6 | |
| parent | chore: clarify default config file (#2026) (diff) | |
| download | atuin-95c91689441c66228cd8eb2e94e9b43a848d75f4.zip | |
fix: save sync time in daemon (#2029)
| -rw-r--r-- | crates/atuin-daemon/src/server/sync.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/atuin-daemon/src/server/sync.rs b/crates/atuin-daemon/src/server/sync.rs index ba037d4e..22c8d307 100644 --- a/crates/atuin-daemon/src/server/sync.rs +++ b/crates/atuin-daemon/src/server/sync.rs @@ -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??; } } } |
