aboutsummaryrefslogtreecommitdiffstats
path: root/crates/atuin-daemon
diff options
context:
space:
mode:
Diffstat (limited to 'crates/atuin-daemon')
-rw-r--r--crates/atuin-daemon/Cargo.toml1
-rw-r--r--crates/atuin-daemon/src/components/sync.rs17
2 files changed, 0 insertions, 18 deletions
diff --git a/crates/atuin-daemon/Cargo.toml b/crates/atuin-daemon/Cargo.toml
index 97bda630..e767d3c9 100644
--- a/crates/atuin-daemon/Cargo.toml
+++ b/crates/atuin-daemon/Cargo.toml
@@ -16,7 +16,6 @@ readme.workspace = true
[dependencies]
atuin-client = { path = "../atuin-client", version = "18.16.1" }
atuin-common = { path = "../atuin-common", version = "18.16.1" }
-atuin-dotfiles = { path = "../atuin-dotfiles", version = "18.16.1" }
atuin-history = { path = "../atuin-history", version = "18.16.1" }
time = { workspace = true }
diff --git a/crates/atuin-daemon/src/components/sync.rs b/crates/atuin-daemon/src/components/sync.rs
index a342f700..6e486250 100644
--- a/crates/atuin-daemon/src/components/sync.rs
+++ b/crates/atuin-daemon/src/components/sync.rs
@@ -10,7 +10,6 @@ use tokio::sync::mpsc;
use tokio::time::{self, MissedTickBehavior};
use atuin_client::{history::store::HistoryStore, record::sync, settings::Settings};
-use atuin_dotfiles::store::{AliasStore, var::VarStore};
use crate::{
daemon::{Component, DaemonHandle},
@@ -123,8 +122,6 @@ async fn sync_loop(handle: DaemonHandle, mut cmd_rx: mpsc::Receiver<SyncCommand>
// Create the stores we need
let encryption_key = *handle.encryption_key();
let history_store = HistoryStore::new(handle.store().clone(), host_id, encryption_key);
- let alias_store = AliasStore::new(handle.store().clone(), host_id, encryption_key);
- let var_store = VarStore::new(handle.store().clone(), host_id, encryption_key);
// Don't backoff by more than 30 mins (with a random jitter of up to 1 min)
let max_interval: f64 = 60.0 * 30.0 + rand::thread_rng().gen_range(0.0..60.0);
@@ -152,8 +149,6 @@ async fn sync_loop(handle: DaemonHandle, mut cmd_rx: mpsc::Receiver<SyncCommand>
sync_state = do_sync_tick(
&handle,
&history_store,
- &alias_store,
- &var_store,
&mut ticker,
max_interval,
&settings,
@@ -167,8 +162,6 @@ async fn sync_loop(handle: DaemonHandle, mut cmd_rx: mpsc::Receiver<SyncCommand>
sync_state = do_sync_tick(
&handle,
&history_store,
- &alias_store,
- &var_store,
&mut ticker,
max_interval,
&settings,
@@ -190,8 +183,6 @@ async fn sync_loop(handle: DaemonHandle, mut cmd_rx: mpsc::Receiver<SyncCommand>
async fn do_sync_tick(
handle: &DaemonHandle,
history_store: &HistoryStore,
- alias_store: &AliasStore,
- var_store: &VarStore,
ticker: &mut time::Interval,
max_interval: f64,
settings: &Settings,
@@ -267,14 +258,6 @@ async fn do_sync_tick(
downloaded: downloaded_records.len(),
});
- // Rebuild alias and var stores
- if let Err(e) = alias_store.build().await {
- tracing::error!("failed to rebuild alias store: {e}");
- }
- if let Err(e) = var_store.build().await {
- tracing::error!("failed to rebuild var store: {e}");
- }
-
// Reset backoff on success
if ticker.period().as_secs() != settings.daemon.sync_frequency {
*ticker = time::interval_at(