Open vgonkivs opened 3 months ago
Attention: Patch coverage is 67.92453%
with 34 lines
in your changes are missing coverage. Please review.
Project coverage is 62.11%. Comparing base (
6d0f9a4
) to head (4f48548
). Report is 1 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
moving to draft until https://github.com/libp2p/go-libp2p/pull/2759 is integrated as it brings improvements to the IdentificationEvent that we rely on.
Overview
This PR brings a bunch of improvements to the peer tracker:
ConnManager
. Libp2p provides us with a good mechanism for tracking peers' scores, so I don't see any reason why we shouldn't use it. Now, instead of keeping all peerStats inside the peer tracker, we will store only peers, and constructing peerStats will beon fly
.{err: close called for the closed stream}
. This error was received when we were trying to close the stream after the request had been finished(for quic transport). Stream.Close() does stream.CloseRead() + stream.CloseWrite() internally, so I decided to change Close() -> CloseRead(). PS. The issue has gone.Checklist