Skip to content

Commit

Permalink
wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
adamspofford-dfinity committed Sep 23, 2024
1 parent 7a8fc56 commit faa675c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ic-agent/src/agent/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1894,12 +1894,12 @@ impl HttpService for DefaultRetryLogic {
break Ok(resp);
}
}
Err(err) => {
Err(_err) => {
// Network-related errors can be retried.
#[cfg(not(target_family = "wasm"))]
if err.is_connect() {
if _err.is_connect() {
if _retry_count >= self._max_tcp_error_retries {
return Err(AgentError::TransportError(err));
return Err(AgentError::TransportError(_err));
}
_retry_count += 1;
}
Expand Down

0 comments on commit faa675c

Please sign in to comment.