aboutsummaryrefslogtreecommitdiffstats
path: root/crates/turtle/src/command/client/sync/status.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/turtle/src/command/client/sync/status.rs')
-rw-r--r--crates/turtle/src/command/client/sync/status.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/turtle/src/command/client/sync/status.rs b/crates/turtle/src/command/client/sync/status.rs
index cb0d86e4..27b10dbd 100644
--- a/crates/turtle/src/command/client/sync/status.rs
+++ b/crates/turtle/src/command/client/sync/status.rs
@@ -1,16 +1,16 @@
-use crate::{SHA, VERSION};
use crate::atuin_client::{api_client, settings::Settings};
+use crate::{SHA, VERSION};
use colored::Colorize;
use eyre::{Result, bail};
pub(crate) async fn run(settings: &Settings) -> Result<()> {
- if !settings.logged_in().await? {
+ if !settings.have_sync_key().await? {
bail!("You are not logged in to a sync server - cannot show sync status");
}
let client = api_client::Client::new(
&settings.sync_address,
- settings.sync_auth_token().await?,
+ settings.sync_auth().await?.into_auth_token()?,
settings.network_connect_timeout,
settings.network_timeout,
)?;