@@ -16,7 +16,6 @@ use alloy::rpc::types::{BlockNumberOrTag, Filter, Log};
1616use alloy_sol_types:: SolEventInterface ;
1717
1818use clap:: Parser ;
19- use humantime:: parse_duration;
2019
2120use rustls;
2221
@@ -76,12 +75,6 @@ pub struct Args {
7675 help = "Initial block time, refined on each block"
7776 ) ]
7877 pub initial_block_time : u64 ,
79-
80- #[ arg( long, default_value = "1000000" ) ]
81- pub provider_max_retries : u32 ,
82-
83- #[ arg( long, default_value = "4s" , value_parser = parse_duration) ]
84- pub provider_retry_interval : Duration ,
8578}
8679
8780type RProvider = FillProvider <
@@ -98,9 +91,6 @@ type RProvider = FillProvider<
9891// TODO: to merge with Levent works
9992struct InfiniteLogIter {
10093 url : String ,
101- max_retries : u32 ,
102- retry_interval : Duration ,
103-
10494 block_time : u64 , /* A default value that is refined with real-time
10595 * events data */
10696 no_block_immediate_recheck : bool ,
@@ -149,8 +139,6 @@ impl InfiniteLogIter {
149139 current_event : None ,
150140 last_block_event_count : 0 ,
151141 last_block_recheck_planned : 0 ,
152- max_retries : args. provider_max_retries ,
153- retry_interval : args. provider_retry_interval ,
154142 }
155143 }
156144
@@ -249,8 +237,7 @@ impl InfiniteLogIter {
249237 let mut retry = 20 ;
250238 loop {
251239 let ws = WsConnect :: new ( & self . url )
252- . with_max_retries ( self . max_retries )
253- . with_retry_interval ( self . retry_interval ) ;
240+ . with_max_retries ( 0 ) ; // disabled, alloy skips events
254241
255242 match ProviderBuilder :: new ( ) . connect_ws ( ws) . await {
256243 Ok ( provider) => {
0 commit comments