cargo fmt + clippy fixes, remove unused voice_membership.rs

This commit is contained in:
Loki 2026-07-09 13:07:38 +02:00
parent 9821814240
commit c34ed2a192
Signed by: boba
GPG key ID: 253067914055423B
13 changed files with 108 additions and 245 deletions

View file

@ -83,7 +83,11 @@ pub async fn run(
return Err(anyhow::anyhow!("auth failed"));
}
if state.storage.is_banned(&hex::encode(&msg.client_pubkey)).await? {
if state
.storage
.is_banned(&hex::encode(&msg.client_pubkey))
.await?
{
state.metrics.inc(&state.metrics.auth_failures);
io::send_error(stream, seq, proto::ErrorCode::AuthFailed, "banned").await?;
return Err(anyhow::anyhow!("banned"));