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:
parent
c231c6b8ef
commit
145a01b2c2
3 changed files with 39 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue