Merge file system hooks implementation

This commit is contained in:
Riz Ashraf committed 2026-09-30 10:06:09 +01:00
commit d2ab8c89b6
4 files changed
+193 -16

No files matched your search

+2
View File
@@ -17,6 +17,7 @@ mod state;
mod store;
mod tools;
mod clipboard_watcher;
mod watcher;
use crate::api::rest::GateSetReq;
use crate::router::MemoryHandler;
@@ -139,6 +140,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))),