Skip to content

Implement backoff retry - #62

Merged
ginesdt merged 2 commits into
masterfrom
retry-on-error
May 22, 2023
Merged

Implement backoff retry#62
ginesdt merged 2 commits into
masterfrom
retry-on-error

Conversation

@ginesdt

@ginesdt ginesdt commented May 22, 2023

Copy link
Copy Markdown
Contributor

This is a continuation of district0x/district-server-smart-contracts#31

Some web3 providers force rate limits such that the amount of request you can do per second is capped. In that case, the provider sends an error if many requests are done in very short time.

This pull requests implements a retry mechanism with exponential backoff in case an error is received from the provider.

@ginesdt
ginesdt merged commit e61c01c into master May 22, 2023
@ginesdt
ginesdt deleted the retry-on-error branch May 22, 2023 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant