perlin-network / noise

A decentralized P2P networking stack written in Go.
https://godoc.org/github.com/perlin-network/noise
MIT License
1.78k stars 213 forks source link

Implement LRU eviction policy for connection pool, and reduce flakiness of Kademlia test. #269

Closed iwasaki-kenta closed 4 years ago

iwasaki-kenta commented 4 years ago

map: have eviction policy of connection pool behave as a lru kademlia/test: assert that all inbound connections to leader node are ready node/opts/test: have quickcheck run only 10 iterations per option to reduce testing time

codecov[bot] commented 4 years ago

Codecov Report

Merging #269 into master will increase coverage by 0.3%. The diff coverage is 78.57%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #269     +/-   ##
=========================================
+ Coverage   69.59%   69.89%   +0.3%     
=========================================
  Files          19       19             
  Lines        1197     1199      +2     
=========================================
+ Hits          833      838      +5     
+ Misses        266      264      -2     
+ Partials       98       97      -1
Impacted Files Coverage Δ
map.go 78.08% <78.57%> (+0.61%) :arrow_up:
client.go 66.9% <0%> (+1.05%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 64da665...b4faa89. Read the comment docs.