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

Remove peer's count of first responses when peer becomes unavailable #757

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

gammazero
Copy link
Contributor

The peer response tracker counts the times each peer is first to response to block requests. When a peer becomes unavailabile, its count of first responses should be removed. This way we are not tracking the first response count for peers that are no longer available.

The peer response tracker counts the times each peer is first to response to block requests. When a peer becomes unavailabile, its count of first responses should be removed. This way we are not tracking the first response count for peers that are no longer available.
@gammazero gammazero requested a review from a team as a code owner December 16, 2024 19:26
Copy link

codecov bot commented Dec 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.47%. Comparing base (8854a6f) to head (28cd43f).
Report is 1 commits behind head on main.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #757      +/-   ##
==========================================
+ Coverage   60.37%   60.47%   +0.10%     
==========================================
  Files         245      245              
  Lines       31114    31117       +3     
==========================================
+ Hits        18784    18818      +34     
+ Misses      10654    10633      -21     
+ Partials     1676     1666      -10     
Files with missing lines Coverage Δ
...wap/client/internal/session/peerresponsetracker.go 96.42% <100.00%> (+0.27%) ⬆️
...tswap/client/internal/session/sessionwantsender.go 97.65% <100.00%> (+1.41%) ⬆️

... and 15 files with indirect coverage changes

@gammazero gammazero merged commit a83de68 into main Dec 17, 2024
15 checks passed
@gammazero gammazero deleted the reset-peer-rsp-trkr branch December 17, 2024 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants