aboutsummaryrefslogtreecommitdiffstats
path: root/atuin-client/src/sync.rs
diff options
context:
space:
mode:
authorDieter Eickstaedt <eickstaedt@deicon.de>2023-10-04 20:13:29 +0200
committerGitHub <noreply@github.com>2023-10-04 18:13:29 +0000
commitf25681d8b1acb49758e1c884e7a11a68df1d4a11 (patch)
tree8f26808dd387957aab659eda658b9bb3c944e0c2 /atuin-client/src/sync.rs
parentA man is not dead while his name is still spoken (#1280) (diff)
downloadatuin-f25681d8b1acb49758e1c884e7a11a68df1d4a11.zip
Fix/1207 deleted entries shown in interactive search (#1272)
Diffstat (limited to 'atuin-client/src/sync.rs')
-rw-r--r--atuin-client/src/sync.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/atuin-client/src/sync.rs b/atuin-client/src/sync.rs
index ebfb47c1..c2fc75f9 100644
--- a/atuin-client/src/sync.rs
+++ b/atuin-client/src/sync.rs
@@ -48,7 +48,7 @@ async fn sync_download(
let remote_deleted =
HashSet::<&str>::from_iter(remote_status.deleted.iter().map(String::as_str));
- let initial_local = db.history_count().await?;
+ let initial_local = db.history_count(true).await?;
let mut local_count = initial_local;
let mut last_sync = if force {
@@ -84,7 +84,7 @@ async fn sync_download(
db.save_bulk(&history).await?;
- local_count = db.history_count().await?;
+ local_count = db.history_count(true).await?;
if history.len() < remote_status.page_size.try_into().unwrap() {
break;
@@ -137,7 +137,7 @@ async fn sync_upload(
let initial_remote_count = client.count().await?;
let mut remote_count = initial_remote_count;
- let local_count = db.history_count().await?;
+ let local_count = db.history_count(true).await?;
debug!("remote has {}, we have {}", remote_count, local_count);