Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add WASM-compatible retry mechanism for RPC requests #481

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

DeVikingMark
Copy link

Fixes #407

Added WASM-compatible retry mechanism for RPC requests to replace non-working Alloy retry implementation.

Changes made:

  • Implemented custom retry logic using wasmtimer::tokio::sleep
  • Added RetryConfig for configurable retry parameters
  • Added exponential backoff with configurable initial and max delays
  • Added proper error handling for different failure types
  • Added comprehensive tests using mockito

This fixes the issue where RPC retries would fail when compiled to WebAssembly.

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.

feat: support retries when execution rpc fails in wasm
1 participant