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

@@ -58,7 +58,11 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
format!("https://{}", args.server)
};
let client = rt.block_on(async { FurumiClient::connect(&full_addr, &args.token).await })?;
let client = rt.block_on(async {
let c = FurumiClient::connect(&full_addr, &args.token).await?;
c.start_background_sync();
Ok::<_, Box<dyn std::error::Error + Send + Sync>>(c)
})?;
let furumi_nfs = nfs::FurumiNfs::new(client);