feat: sync edge autobans across nodes

This commit is contained in:
Loki 2026-10-16 23:09:26 +02:00
parent cfaad47948
commit 622a5964f2
Signed by: boba
GPG key ID: 6CDE87BC9A778D97
8 changed files with 189 additions and 4 deletions

View file

@ -93,6 +93,19 @@ pub async fn run() -> anyhow::Result<RunExit> {
return;
},
};
let local_events = bl.subscribe_local_bans();
let publisher_client = client.clone();
let publisher_blacklist = bl.clone();
let publisher_shutdown = sd.clone();
tokio::spawn(async move {
crate::store::start_local_ban_publisher(
publisher_client,
publisher_blacklist,
local_events,
publisher_shutdown,
)
.await;
});
crate::store::start_blacklist_sync(&client, bl, sd).await;
});
}