summaryrefslogtreecommitdiffstats
path: root/atuin-client/src/sync.rs
diff options
context:
space:
mode:
authorConrad Ludgate <conradludgate@gmail.com>2023-10-08 17:15:14 +0100
committerGitHub <noreply@github.com>2023-10-08 16:15:14 +0000
commit38172f35016459b7765dfacdbe1f8225fca59e50 (patch)
tree572ba5b5983ad672f23e1ccbf8ae59a7d7242bef /atuin-client/src/sync.rs
parent1735be05d71ec21ffb8648866fca83e210cfe31a (diff)
clear history id (#1263)
* clear history id * fix nu
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 c2fc75f98..5f612c715 100644
--- a/atuin-client/src/sync.rs
+++ b/atuin-client/src/sync.rs
@@ -37,7 +37,7 @@ async fn sync_download(
key: &Key,
force: bool,
client: &api_client::Client<'_>,
- db: &mut (impl Database + Send),
+ db: &(impl Database + Send),
) -> Result<(i64, i64)> {
debug!("starting sync download");
@@ -127,7 +127,7 @@ async fn sync_upload(
key: &Key,
_force: bool,
client: &api_client::Client<'_>,
- db: &mut (impl Database + Send),
+ db: &(impl Database + Send),
) -> Result<()> {
debug!("starting sync upload");
@@ -188,7 +188,7 @@ async fn sync_upload(
Ok(())
}
-pub async fn sync(settings: &Settings, force: bool, db: &mut (impl Database + Send)) -> Result<()> {
+pub async fn sync(settings: &Settings, force: bool, db: &(impl Database + Send)) -> Result<()> {
let client = api_client::Client::new(
&settings.sync_address,
&settings.session_token,