diff options
-rw-r--r-- | atuin-client/src/sync.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/atuin-client/src/sync.rs b/atuin-client/src/sync.rs index 99b423c2c..1f0d3dd81 100644 --- a/atuin-client/src/sync.rs +++ b/atuin-client/src/sync.rs @@ -196,6 +196,8 @@ pub async fn sync(settings: &Settings, force: bool, db: &(impl Database + Send)) settings.network_timeout, )?; + Settings::save_sync_time()?; + let key = load_key(settings)?; // encryption key sync_upload(&key, force, &client, db).await?; @@ -204,7 +206,5 @@ pub async fn sync(settings: &Settings, force: bool, db: &(impl Database + Send)) debug!("sync downloaded {}", download.0); - Settings::save_sync_time()?; - Ok(()) } |