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 spamming errors when requesting data from Juno that is not (yet) … #2289

Merged
merged 2 commits into from
Nov 28, 2024

Conversation

AnkushinDaniil
Copy link
Contributor

@AnkushinDaniil AnkushinDaniil commented Nov 28, 2024

This pull request includes changes to the p2p/starknet/handlers.go file to improve error handling and add a new import. The most important changes include adding a new import for the db package and modifying error handling to specifically check for db.ErrKeyNotFound.

Import Addition:

  • Added the db package to the import list in p2p/starknet/handlers.go.

Error Handling Improvements:

  • Updated the processIterationRequest function to log errors only if they are not db.ErrKeyNotFound.
  • Updated the processIterationRequestMulti function to log errors only if they are not db.ErrKeyNotFound.

https://demerzelsolutions.slack.com/archives/C03HL8DH52N/p1732706848085409?thread_ts=1732286243.285989&cid=C03HL8DH52N

Copy link

codecov bot commented Nov 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.30%. Comparing base (874e86c) to head (3725260).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2289      +/-   ##
==========================================
- Coverage   75.45%   75.30%   -0.15%     
==========================================
  Files         107      107              
  Lines       11404    11404              
==========================================
- Hits         8605     8588      -17     
- Misses       2147     2158      +11     
- Partials      652      658       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@pnowosie pnowosie left a comment

Choose a reason for hiding this comment

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

Nice catch 👍

@AnkushinDaniil AnkushinDaniil merged commit 8afd1a2 into main Nov 28, 2024
13 checks passed
@AnkushinDaniil AnkushinDaniil deleted the daniil/handle-p2p-sync-error branch November 28, 2024 14:32
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.

4 participants