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(network): remove disconnected peers from peerMgr #1110

Merged
merged 1 commit into from
Feb 14, 2024

Conversation

b00f
Copy link
Collaborator

@b00f b00f commented Feb 14, 2024

Description

This PR loops over all connected peers in PeerMgr and removes those who are not connected.
This helps to remove disconnected peers if, for any reason, the disconnected event is missed.

Related issue(s)

Copy link

codecov bot commented Feb 14, 2024

Codecov Report

Merging #1110 (929be10) into main (199a253) will decrease coverage by 0.10%.
Report is 2 commits behind head on main.
The diff coverage is 78.94%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1110      +/-   ##
==========================================
- Coverage   81.33%   81.23%   -0.10%     
==========================================
  Files         173      173              
  Lines        9190     9211      +21     
==========================================
+ Hits         7475     7483       +8     
- Misses       1360     1371      +11     
- Partials      355      357       +2     

@themantre themantre merged commit a139ddd into pactus-project:main Feb 14, 2024
12 checks passed
@b00f b00f deleted the network-fix-1108 branch March 21, 2024 06:34
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.

Inacurate number of incound conections
2 participants