Added prefetch

This commit is contained in:
2026-03-13 18:06:54 +00:00
parent 078698154e
commit 9c55dce5a1
3 changed files with 12 additions and 6 deletions

View File

@@ -63,7 +63,10 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
if let Err(e) = c.get_attr("/").await {
return Err(format!("Failed to authenticate or connect to server: {}", e).into());
}
// Auth verified — start background snapshot + watch sync
c.start_background_sync();
Ok::<_, Box<dyn std::error::Error>>(c)
})?;