Implement circuit breaker and request pool for abi and meta loaders#233
Merged
Implement circuit breaker and request pool for abi and meta loaders#233
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Deploying loop-decoder with
|
| Latest commit: |
fa12a99
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://46d1a3d5.loop-decoder.pages.dev |
| Branch Preview URL: | https://implement-circuit-breaker.loop-decoder.pages.dev |
b7d2b28 to
90b7ac2
Compare
90b7ac2 to
04e1601
Compare
04e1601 to
19091ba
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR integrates circuit breaker and request pool functionality into both ABI and meta loaders, enhancing resilience and adaptive concurrency support with unified metrics tracking. Key changes include:
- Adding circuit breaker and request pool creation and usage across ABI and meta strategies.
- Updating tests to cover various metrics and resilience scenarios.
- Refactoring loader implementations to leverage the new infrastructure for improved fault tolerance.
Reviewed Changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/transaction-decoder/test/request-pool.test.ts | Added comprehensive tests for the request pool with metrics. |
| packages/transaction-decoder/test/circuit-breaker-with-metrics.test.ts | Tests for circuit breaker functionality and metrics integration. |
| packages/transaction-decoder/src/meta-strategy/strategy-executor.ts | Implements meta strategy execution with circuit breaker and pool. |
| packages/transaction-decoder/src/contract-meta-store.ts | Updates factory to create shared circuit breaker and request pool. |
| packages/transaction-decoder/src/contract-meta-loader.ts | Integrates resilience enhancements in meta loader processing. |
| packages/transaction-decoder/src/circuit-breaker/request-pool.ts | New request pool implementation with adaptive concurrency and metrics. |
| packages/transaction-decoder/src/abi-strategy/strategy-executor.ts | Similar resilience approach applied to ABI strategies. |
| packages/transaction-decoder/src/abi-store.ts | Incorporates shared circuit breaker and request pool in ABI store. |
| packages/transaction-decoder/src/abi-loader.ts | Updates ABI loader to use new strategy executor and resilience features. |
| packages/eslint-config-custom/library.js | Lint rule updates including disabling namespace rules. |
57fb10c to
a02e460
Compare
c5ba892 to
fa12a99
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WIP.