From 0d5332a87facabb7227458586002226fafa11acb Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Mon, 7 Aug 2023 11:18:39 +0100 Subject: Prepare release v16.0.0 (#1143) * Prepare release v16.0.0 * Remove debug output * Fix kv dupes if the store already exists * Add limit in frontend as well as sync backend --- atuin-client/src/record/sync.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'atuin-client/src/record') diff --git a/atuin-client/src/record/sync.rs b/atuin-client/src/record/sync.rs index ebdb8eb2..ad9079ed 100644 --- a/atuin-client/src/record/sync.rs +++ b/atuin-client/src/record/sync.rs @@ -124,7 +124,12 @@ async fn sync_upload( // we need to iterate from the remote tail, and keep going until // remote tail = current local tail - let mut record = Some(store.get(start).await.unwrap()); + let mut record = if current_tail.is_some() { + let r = store.get(start).await.unwrap(); + store.next(&r).await? + } else { + Some(store.get(start).await.unwrap()) + }; let mut buf = Vec::with_capacity(upload_page_size); -- cgit v1.3.1