cargo fmt + clippy fixes, remove unused voice_membership.rs
This commit is contained in:
parent
9821814240
commit
c34ed2a192
13 changed files with 108 additions and 245 deletions
|
|
@ -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"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue