aboutsummaryrefslogtreecommitdiffstats
path: root/crates/atuin-client/src/sync.rs
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@elliehuxtable.com>2024-05-21 10:43:08 +0700
committerGitHub <noreply@github.com>2024-05-21 10:43:08 +0700
commit8dc8448de0b9acaf9c3c27556d3c6c4342d8d493 (patch)
treea0fc95ebb1bf2fd2f923ac54634c8c021d93e476 /crates/atuin-client/src/sync.rs
parentchore(deps): bump tokio from 1.36.0 to 1.37.0 (#2033) (diff)
downloadatuin-8dc8448de0b9acaf9c3c27556d3c6c4342d8d493.zip
fix(daemon): do not try to sync if logged out (#2037)
* fix(daemon): do not try to sync if logged out I've also added Settings::logged_in, as there are a few places where we switch on login state. * make session_token a function
Diffstat (limited to 'crates/atuin-client/src/sync.rs')
-rw-r--r--crates/atuin-client/src/sync.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/atuin-client/src/sync.rs b/crates/atuin-client/src/sync.rs
index 0a5021cb..c2377baa 100644
--- a/crates/atuin-client/src/sync.rs
+++ b/crates/atuin-client/src/sync.rs
@@ -191,7 +191,7 @@ async fn sync_upload(
pub async fn sync(settings: &Settings, force: bool, db: &impl Database) -> Result<()> {
let client = api_client::Client::new(
&settings.sync_address,
- &settings.session_token,
+ settings.session_token()?.as_str(),
settings.network_connect_timeout,
settings.network_timeout,
)?;