xline: persist server bans via the off-core disk writer too, so a KLINE/GLINE burst can't stall the event loop on a slow disk

This commit is contained in:
Jean Chevronnet 2026-08-12 13:20:16 +00:00
parent e91b64a4db
commit 4ba8d5bce6

View file

@ -333,7 +333,7 @@ impl Server {
x.reason
));
}
let _ = std::fs::write(self.xline_db_path(), out);
self.disk_write(self.xline_db_path(), out); // off-core: a slow disk mustn't stall the event loop
}
/// Reload persisted x-lines at startup, skipping any already expired.