-
-
Notifications
You must be signed in to change notification settings - Fork 300
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: do not register libp2p handler twice for same protocol #6455
Conversation
Error logs are no longer observed in sim tests (sim-test-multifork-logs.zip) |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## unstable #6455 +/- ##
=========================================
Coverage 61.63% 61.63%
=========================================
Files 553 553
Lines 57975 57974 -1
Branches 1832 1833 +1
=========================================
+ Hits 35733 35735 +2
+ Misses 22205 22202 -3
Partials 37 37 |
Performance Report✔️ no performance regression detected Full benchmark results
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
🎉 This PR is included in v1.16.0 🎉 |
Motivation
Closes #6319
Description
In #5325 we have split out some functionality to be able to register dial only protocols but duplicate check to not register libp2p handler twice for same protocol has been moved in a function which does not even call
libp2p.handle
.This changes adds it back in the right place and makes sure we do not register libp2p handler twice for same protocol.