core: Server::disk_write — coalescing off-core snapshot writer; reputation/metadata saves no longer block the event loop on a slow disk

This commit is contained in:
Jean Chevronnet 2026-08-12 13:16:15 +00:00
parent c231c6b8ef
commit 145a01b2c2
3 changed files with 39 additions and 2 deletions

View file

@ -228,7 +228,7 @@ pub fn save(s: &Server) {
}
}
}
let _ = std::fs::write(db_path(s), out);
s.disk_write(db_path(s), out); // off-core: a slow disk mustn't stall the event loop
}
/// Reload persisted channel metadata at startup.