Skip to content

Commit cf9cc7b

Browse files
committed
fmt + clippy
1 parent 9278ed3 commit cf9cc7b

File tree

1 file changed

+9
-3
lines changed
  • batcher/aligned-batcher/src

1 file changed

+9
-3
lines changed

batcher/aligned-batcher/src/lib.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -684,8 +684,8 @@ impl Batcher {
684684
return Ok(());
685685
};
686686

687-
// We estimate the min balance to be the minimum balance needed to pay for the
688-
if !self.check_min_balance( user_min_fee, proofs_in_batch + 1, user_balance, msg_max_fee) {
687+
// We estimate the min balance to be the minimum balance needed to pay for the
688+
if !self.check_min_balance(user_min_fee, proofs_in_batch + 1, user_balance, msg_max_fee) {
689689
std::mem::drop(batch_state_lock);
690690
send_message(
691691
ws_conn_sink.clone(),
@@ -779,7 +779,13 @@ impl Batcher {
779779
}
780780

781781
// Checks user has sufficient balance for paying all its the proofs in the current batch.
782-
fn check_min_balance(&self, user_min_fee: U256, user_proofs_in_batch: usize, user_balance: U256, user_max_fee: U256) -> bool {
782+
fn check_min_balance(
783+
&self,
784+
user_min_fee: U256,
785+
user_proofs_in_batch: usize,
786+
user_balance: U256,
787+
user_max_fee: U256,
788+
) -> bool {
783789
// If user proof has not been submitted yet its default is U256::max_value().
784790
// In this case we check the user can pay for its proof.
785791
let mut min_fee = user_min_fee;

0 commit comments

Comments
 (0)