xline_db: persist x-lines/cbans to disk, reload on start
This commit is contained in:
parent
e2a4a3e248
commit
6be8e5ebcb
3 changed files with 81 additions and 2 deletions
|
|
@ -71,8 +71,10 @@ impl Ircd {
|
|||
event_tx: Sender<Event>,
|
||||
conn_counter: std::sync::Arc<std::sync::atomic::AtomicU64>,
|
||||
) -> Ircd {
|
||||
let mut server = Server::new(cfg, event_tx, conn_counter);
|
||||
server.load_xlines(); // restore persisted bans (m_xline_db)
|
||||
Ircd {
|
||||
server: Server::new(cfg, event_tx, conn_counter),
|
||||
server,
|
||||
commands: command_table(),
|
||||
modules: crate::modules::default_modules(),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue