Skip to content

Commit 1ce35da

Browse files
committed
clippy
clippy
1 parent c72d34b commit 1ce35da

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/event_scanner.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ impl<P: Provider<N>, N: Network> EventScanner<P, N> {
279279
config: &CallbackConfig,
280280
) -> anyhow::Result<()> {
281281
match callback.on_event(log).await {
282-
Ok(_) => Ok(()),
282+
Ok(()) => Ok(()),
283283
Err(first_err) => {
284284
// use exponential backoff for state-sync errors
285285
if is_missing_trie_node_error(&first_err) {
@@ -306,7 +306,7 @@ impl<P: Provider<N>, N: Network> EventScanner<P, N> {
306306

307307
tokio::time::sleep(delay).await;
308308
match callback.on_event(log).await {
309-
Ok(_) => return Ok(()),
309+
Ok(()) => return Ok(()),
310310
Err(e) => {
311311
last_err = e;
312312
let next_secs = delay.as_secs_f64() * STATE_SYNC_RETRY_MULTIPLIER;
@@ -333,10 +333,9 @@ impl<P: Provider<N>, N: Network> EventScanner<P, N> {
333333
);
334334
tokio::time::sleep(Duration::from_millis(config.delay_ms)).await;
335335
match callback.on_event(log).await {
336-
Ok(_) => return Ok(()),
336+
Ok(()) => return Ok(()),
337337
Err(e) => {
338338
last_err = e;
339-
continue;
340339
}
341340
}
342341
}

0 commit comments

Comments
 (0)