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

Introducing ExtendedBatchGetLatestValuesGraceful #546

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

0xnogo
Copy link
Contributor

@0xnogo 0xnogo commented Feb 3, 2025

This will be needed to batch the config call in the ccip reader as some bindings might not be done when we execute the batch call.

@0xnogo 0xnogo marked this pull request as ready for review February 3, 2025 14:31
@0xnogo 0xnogo requested a review from a team as a code owner February 3, 2025 14:31
Copy link

github-actions bot commented Feb 3, 2025

Metric ng/batch-graceful main
Coverage 75.6% 75.4%

Comment on lines +88 to +93
// ExtendedBatchGetLatestValuesGraceful performs the same operations as ExtendedBatchGetLatestValues
// but handles ErrNoBindings gracefully by:
// 1. Skipping contracts with no bindings instead of returning an error
// 2. Returning partial results for contracts that do have bindings
// 3. Including information about which contracts were skipped due to no bindings
ExtendedBatchGetLatestValuesGraceful(
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we using ExtendedBatchGetLatestValues anywhere? Maybe we can add this functionality to the existing function instead of creating a new one.

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.

2 participants