feat: implement proactive daemon hooks for file saves

This commit is contained in:
Riz Ashraf committed 2026-09-30 09:54:06 +01:00
1 parent ec0472155f
commit 5870f37fbd
4 files changed
+221 -16

No files matched your search

+2
View File
@@ -16,6 +16,7 @@ mod state;
mod store;
mod tools;
mod clipboard_watcher;
mod watcher;
use crate::api::rest::GateSetReq;
use crate::router::MemoryHandler;
@@ -134,6 +135,7 @@ async fn run_server(state: Arc<MemoryState>) -> Result<(), Box<dyn std::error::E
tokio::spawn(index_committer_worker(Arc::clone(&state)));
tokio::spawn(ttl_sweeper_worker(Arc::clone(&state)));
crate::clipboard_watcher::spawn_watcher(Arc::clone(&state));
crate::watcher::spawn_watcher(Arc::clone(&state));
let (shutdown_tx, shutdown_rx) = tokio::sync::oneshot::channel();
let app_state = Arc::new(AppState {
handler: Arc::new(MemoryHandler::new(Arc::clone(&state))),