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 behavior of KademliaProtocol<T>.RefreshTableAsync #593

Merged
merged 4 commits into from
Oct 22, 2019

Conversation

limebell
Copy link
Member

@limebell limebell commented Oct 17, 2019

Fixed a bug that KademliaProcol<T>.RefreshTableAsync() did not remove staled peers. And became to check only least recently used peers in each table to prevent too frequent live checking.

This closes #568.

@limebell limebell added this to the 0.7.0 milestone Oct 17, 2019
@limebell limebell self-assigned this Oct 17, 2019
moreal
moreal previously approved these changes Oct 17, 2019
@codecov
Copy link

codecov bot commented Oct 17, 2019

Codecov Report

Merging #593 into master will decrease coverage by 0.01%.
The diff coverage is 85.41%.

@@            Coverage Diff             @@
##           master     #593      +/-   ##
==========================================
- Coverage    90.9%   90.88%   -0.02%     
==========================================
  Files         202      202              
  Lines       15699    15723      +24     
==========================================
+ Hits        14271    14290      +19     
- Misses       1130     1134       +4     
- Partials      298      299       +1
Impacted Files Coverage Δ
Libplanet/Net/Protocols/KBucket.cs 92.72% <84.21%> (+0.89%) ⬆️
Libplanet/Net/Protocols/KademliaProtocol.cs 67.49% <86.2%> (+0.22%) ⬆️

longfin
longfin previously approved these changes Oct 17, 2019
earlbread
earlbread previously approved these changes Oct 17, 2019
@limebell limebell dismissed stale reviews from earlbread and longfin via 7da2ded October 18, 2019 05:01
earlbread
earlbread previously approved these changes Oct 21, 2019
@limebell limebell requested a review from earlbread October 22, 2019 09:44
@earlbread earlbread merged commit ef099e0 into planetarium:master Oct 22, 2019
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.

Avoid unnecessary liveness checking
5 participants