Skip to content

Commit 546aba9

Browse files
committed
perf: drop latest_block_gas_price lock early
1 parent 6f32282 commit 546aba9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/batcher/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,8 +1524,7 @@ impl Batcher {
15241524
let gas_price = gas_price.map_err(|_| BatcherError::GasPriceError)?;
15251525

15261526
{
1527-
let mut latest_block_gas_price = self.latest_block_gas_price.write().await;
1528-
*latest_block_gas_price = gas_price;
1527+
*self.latest_block_gas_price.write().await = gas_price;
15291528

15301529
let new_disable_verifiers = disable_verifiers
15311530
.map_err(|e| BatcherError::DisabledVerifiersError(e.to_string()))?;

0 commit comments

Comments
 (0)