Skip to content

Commit 4aabc53

Browse files
committed
fix: remove sleep from verify_proof
1 parent 067b64a commit 4aabc53

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crates/batcher/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@ impl Batcher {
11951195
gas_price: U256,
11961196
) -> Option<Vec<BatchQueueEntry>> {
11971197
info!("Batch building: started, acquiring lock to stop processing new messages...");
1198-
let _ = self.batch_building_mutex.lock().await;
1198+
let _batch_building_mutex = self.batch_building_mutex.lock().await;
11991199

12001200
info!("Batch building: waiting until all the ongoing messages finish");
12011201
// acquire all the user locks to make sure all the ongoing message have been processed
@@ -2023,8 +2023,6 @@ impl Batcher {
20232023
&self,
20242024
nonced_verification_data: &NoncedVerificationData,
20252025
) -> Result<(), ProofInvalidReason> {
2026-
tokio::time::sleep(tokio::time::Duration::from_secs(5)).await;
2027-
20282026
if !self.pre_verification_is_enabled {
20292027
return Ok(());
20302028
}

0 commit comments

Comments
 (0)