Skip to content

Commit

Permalink
Test timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Ktl-XV committed Aug 26, 2024
1 parent 6f693e9 commit ae93205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ fn process_block_events(

pub async fn connect_and_verify(chain: Chain) -> Provider<Http> {
let provider =
Provider::<Http>::try_from(chain.rpc.clone()).expect("could not instantiate HTTP Provider");
Provider::<Http>::try_from(chain.rpc.clone()).expect("could not instantiate HTTP Provider").with_timeout(30);

let chainid = provider.get_chainid().await.unwrap();

Expand Down

0 comments on commit ae93205

Please sign in to comment.