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(share/peer-manager): fix potential nil dereference in peer manager #4117

Merged
merged 2 commits into from
Feb 13, 2025

Conversation

walldiss
Copy link
Member

If pool was removed during request it could lead to unexpected panic in client.

@walldiss walldiss added the kind:fix Attached to bug-fixing PRs label Feb 13, 2025
@walldiss walldiss self-assigned this Feb 13, 2025
Copy link
Contributor

@cristaloleg cristaloleg left a comment

Choose a reason for hiding this comment

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

SGTM

@walldiss walldiss changed the title fix(share/peer-manager): fix nil pool fix(share/peer-manager): fix potential nil dereference in peer manager Feb 13, 2025
@codecov-commenter
Copy link

codecov-commenter commented Feb 13, 2025

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Project coverage is 44.99%. Comparing base (2469e7a) to head (551f9cf).
Report is 443 commits behind head on main.

Files with missing lines Patch % Lines
share/shwap/p2p/shrex/peers/manager.go 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4117      +/-   ##
==========================================
+ Coverage   44.83%   44.99%   +0.16%     
==========================================
  Files         265      308      +43     
  Lines       14620    22546    +7926     
==========================================
+ Hits         6555    10145    +3590     
- Misses       7313    11310    +3997     
- Partials      752     1091     +339     

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

@walldiss walldiss enabled auto-merge (squash) February 13, 2025 17:06
@walldiss walldiss merged commit 75dca6f into celestiaorg:main Feb 13, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:fix Attached to bug-fixing PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants