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:
parent
e91b64a4db
commit
4ba8d5bce6
1 changed files with 1 additions and 1 deletions
|
|
@ -333,7 +333,7 @@ impl Server {
|
||||||
x.reason
|
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.
|
/// Reload persisted x-lines at startup, skipping any already expired.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue