Skip to content

Commit

Permalink
fix: should_retry when # failures > MAX_RETRIES (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored May 22, 2022
1 parent 6962ec2 commit 803063c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth_retry/eth_retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async def auto_retry_wrap_async(*args: Any, **kwargs: Any) -> Any:

def should_retry(e: Exception, failures: int) -> bool:
if failures > MAX_RETRIES:
return True
return False

retry_on_errs = (
# Occurs on any chain when making computationally intensive calls. Just retry.
Expand Down

0 comments on commit 803063c

Please sign in to comment.