Skip to content

Commit fa6f569

Browse files
Revert "refactor(probe): take the attempt deadline for Sui from probe_chain"
1 parent e5e4ef5 commit fa6f569

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • crates/foreign-chain-health-check/src

crates/foreign-chain-health-check/src/probe.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ pub async fn probe_all_providers(config: &ForeignChainsConfig) -> ProbeReport {
132132
.await
133133
}
134134
ForeignChain::Sui => {
135-
probe_chain(chain, chain_config, |provider, timeout| {
135+
let timeout = Duration::from_secs(chain_config.timeout_sec.get());
136+
probe_chain(chain, chain_config, move |provider| {
136137
Ok(SuiInspector::new(prepare_sui(provider, timeout)?))
137138
})
138139
.await

0 commit comments

Comments
 (0)