-
Notifications
You must be signed in to change notification settings - Fork 40
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
OnPeerDisconnected handler. #1369
Conversation
Signed-off-by: iceseer <[email protected]>
e4cf623
to
fdd80d2
Compare
Codecov Report
@@ Coverage Diff @@
## master #1369 +/- ##
=======================================
Coverage 24.15% 24.15%
=======================================
Files 627 627
Lines 23464 23459 -5
Branches 12267 12262 -5
=======================================
Hits 5667 5667
+ Misses 12522 12517 -5
Partials 5275 5275
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
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.
Please check if soft_limit is needed at all after the changes. If not, please remove it from peering config
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
44f3a06
to
99de27b
Compare
Signed-off-by: iceseer <[email protected]>
Я вернул проверку на существование в active_peers_ перед удалением, т.е. теперь удалится только если перешел из connecting_peers_ в active_peers_. Но имхо теперь есть неоднозначность и возможная неконсистентность с состоянием в libp2p. Мы вызвали удаление и libp2p все почистил, вызвал колбэк, а мы не удалили. Выглядит как будто у нас была ошибка раньше |
This reverts commit 856cbb6.
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer [email protected]
Description of the Change
OnPeerDisconnected event handling. Revove our current states by this event.