Skip to content

Commit 44c3306

Browse files
committed
Fmt
1 parent c792b41 commit 44c3306

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

  • batcher/aligned-batcher/src

batcher/aligned-batcher/src/lib.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,6 @@ impl Batcher {
500500
address: Address,
501501
ws_conn_sink: WsMessageSink,
502502
) -> Result<(), Error> {
503-
504503
let cached_user_nonce = {
505504
let batch_state_lock = self.batch_state.lock().await;
506505
batch_state_lock.get_user_nonce(&address).await
@@ -586,7 +585,7 @@ impl Batcher {
586585
let non_paying_data = self.generate_non_paying_data(&client_msg).await;
587586
addr = non_paying_data.address;
588587
nonced_verification_data = non_paying_data.nonced_verification_data;
589-
signature = non_paying_data.signature;
588+
signature = non_paying_data.signature;
590589
}
591590

592591
// When pre-verification is enabled, batcher will verify proofs for faster feedback with clients
@@ -756,7 +755,7 @@ impl Batcher {
756755
self.metrics.user_error(&["invalid_nonce", ""]);
757756
return Ok(());
758757
}
759-
758+
760759
// In this case, the message might be a replacement one. If it is valid,
761760
// we replace the old entry with the new from the replacement message.
762761
if expected_nonce > msg_nonce {
@@ -769,7 +768,7 @@ impl Batcher {
769768
addr,
770769
)
771770
.await;
772-
771+
773772
return Ok(());
774773
}
775774
}
@@ -1725,10 +1724,11 @@ impl Batcher {
17251724

17261725
/// An address has to pay if it's on mainnet or is not the special designated address on testnet
17271726
fn has_to_pay(&self, addr: &Address) -> bool {
1728-
self.non_paying_config.is_none() ||
1729-
self.non_paying_config
1730-
.as_ref()
1731-
.is_some_and(|non_paying_config| non_paying_config.address != *addr)
1727+
self.non_paying_config.is_none()
1728+
|| self
1729+
.non_paying_config
1730+
.as_ref()
1731+
.is_some_and(|non_paying_config| non_paying_config.address != *addr)
17321732
}
17331733

17341734
fn get_nonpaying_replacement_addr(&self) -> Option<Address> {

0 commit comments

Comments
 (0)