Skip to content

Commit 16c746a

Browse files
committed
ref: fmt
1 parent b48a74e commit 16c746a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/block_range_scanner.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ pub const DEFAULT_BLOCK_CONFIRMATIONS: u64 = 0;
9595

9696
pub const MAX_BUFFERED_MESSAGES: usize = 50000;
9797

98-
// Maximum amount of reorged blocks on Ethereum (after this amount of block confirmations, a block is considered final)
98+
// Maximum amount of reorged blocks on Ethereum (after this amount of block confirmations, a block
99+
// is considered final)
99100
pub const DEFAULT_REORG_REWIND_DEPTH: u64 = 64;
100101

101102
// // State sync aware retry settings
@@ -643,7 +644,8 @@ impl<N: Network> Service<N> {
643644
debug!(batch_count = batch_count, "Processed rewind batches");
644645
}
645646

646-
// check early if end of stream achieved to avoid subtraction overflow when `stream_end == 0`
647+
// check early if end of stream achieved to avoid subtraction overflow when `stream_end
648+
// == 0`
647649
if batch_to == stream_end {
648650
break;
649651
}

src/event_scanner.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@ impl<N: Network> ConnectedEventScanner<N> {
307307
match sub.recv().await {
308308
Ok(BlockRangeMessage::Data(range)) => {
309309
let logs = Self::get_logs(range, &filter, &log_filter, &provider).await;
310-
if let Ok(logs) = &logs
311-
&& logs.is_empty()
310+
if let Ok(logs) = &logs &&
311+
logs.is_empty()
312312
{
313313
continue;
314314
}

0 commit comments

Comments
 (0)