Skip to content

refactor(providers-evm-rpc): replace anyhow with structured errors#2011

Merged
Theodus merged 2 commits intomainfrom
theodus/extractor-clients
Mar 24, 2026
Merged

refactor(providers-evm-rpc): replace anyhow with structured errors#2011
Theodus merged 2 commits intomainfrom
theodus/extractor-clients

Conversation

@Theodus
Copy link
Member

@Theodus Theodus commented Mar 23, 2026

Remove anyhow from the EVM RPC and Tempo provider clients in favor of thiserror enums with explicit error sources.

  • Add FetchReceiptsError for receipt-fetch failures in the unbatched path
  • Replace anyhow::anyhow! with BatchingError::RateLimitAcquire(err)
  • Switch receipt sorting to sort_unstable_by_key

Remove anyhow from the EVM RPC and Tempo provider clients in favor of
thiserror enums with explicit error sources.

- Add `FetchReceiptsError` for receipt-fetch failures in the unbatched path
- Replace `anyhow::anyhow!` with `BatchingError::RateLimitAcquire(err)`
- Switch receipt sorting to `sort_unstable_by_key`
Copy link
Contributor

@shiyasmohd shiyasmohd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@LNSD LNSD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅

@Theodus Theodus force-pushed the theodus/extractor-clients branch from ee601a8 to a9a4a5d Compare March 24, 2026 13:18
@Theodus Theodus merged commit d3c9f6a into main Mar 24, 2026
8 checks passed
@Theodus Theodus deleted the theodus/extractor-clients branch March 24, 2026 13:18
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.

3 participants