Skip to content

Commit d25bef1

Browse files
committed
chore: address clippy warnings
1 parent ef8c9a3 commit d25bef1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/batcher/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ use lambdaworks_crypto::merkle_tree::merkle::MerkleTree;
4646
use lambdaworks_crypto::merkle_tree::traits::IsMerkleTreeBackend;
4747
use log::{debug, error, info, warn};
4848
use tokio::net::{TcpListener, TcpStream};
49-
use tokio::sync::{Mutex, MutexGuard, RwLock};
49+
use tokio::sync::{Mutex, RwLock};
5050
use tokio_tungstenite::tungstenite::{Error, Message};
5151
use types::batch_queue::{self, BatchQueueEntry, BatchQueueEntryPriority};
5252
use types::errors::{BatcherError, TransactionSendError};
@@ -61,7 +61,6 @@ mod eth;
6161
mod ffi;
6262
pub mod gnark;
6363
pub mod metrics;
64-
mod proof_processor;
6564
pub mod retry;
6665
pub mod risc_zero;
6766
pub mod s3;
@@ -925,12 +924,13 @@ impl Batcher {
925924
return Ok(());
926925
};
927926

928-
if let Err(_) = self
927+
if self
929928
.batch_state
930929
.lock()
931930
.await
932931
.update_user_after_adding_proof(addr, msg_nonce, msg_max_fee)
933932
.await
933+
.is_err()
934934
{
935935
send_message(
936936
ws_conn_sink.clone(),

0 commit comments

Comments
 (0)