Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
PatStiles committed Dec 30, 2024
1 parent 67bf22c commit 3c754bc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions batcher/aligned-sdk/src/communication/messaging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use ethers::signers::Signer;
use ethers::types::Address;
use futures_util::{stream::SplitStream, SinkExt, StreamExt};
use log::{debug, error, info, warn};
use std::error;
use std::sync::Arc;
use tokio::{net::TcpStream, sync::Mutex};

Expand All @@ -22,7 +21,7 @@ use crate::{
SubmitProofResponseMessage, VerificationData, VerificationDataCommitment,
},
},
};
};

pub type ResponseStream = TryFilter<
SplitStream<WebSocketStream<MaybeTlsStream<TcpStream>>>,
Expand Down Expand Up @@ -215,10 +214,7 @@ async fn handle_batcher_response(msg: Message) -> Result<BatchInclusionData, Sub
Ok(SubmitProofResponseMessage::InsufficientBalance(addr, error_nonce)) => {
// If we receive an invalid balance we should grab the error_nonce.
error!("Batcher responded with insufficient balance");
Err(SubmitError::InsufficientBalance(
addr,
error_nonce,
))
Err(SubmitError::InsufficientBalance(addr, error_nonce))
}
Ok(SubmitProofResponseMessage::InvalidChainId) => {
error!("Batcher responded with invalid chain id");
Expand Down

0 comments on commit 3c754bc

Please sign in to comment.