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

Refactor Swarm<T> constructor #581

Merged
merged 5 commits into from
Oct 16, 2019

Conversation

longfin
Copy link
Member

@longfin longfin commented Oct 15, 2019

This PR refactor Swarm<T>'s constructor as below

  • The linger parameter is replaced with waitFor in Swarm<T>.StopAsync().
  • The dialTimeout parameter is moved to Swarm<T>.PreloadAsync() and Swarm<T>.StartAsync().

And, it also makes some changes as below

  • Removed Swarm<T>._blockChain using the auto-implemented property.
  • Removed Swarm<T>._protocol using the auto-implemented property.

@longfin longfin self-assigned this Oct 15, 2019
@codecov
Copy link

codecov bot commented Oct 15, 2019

Codecov Report

Merging #581 into master will increase coverage by 0.11%.
The diff coverage is 97.01%.

@@            Coverage Diff             @@
##           master     #581      +/-   ##
==========================================
+ Coverage   90.72%   90.84%   +0.11%     
==========================================
  Files         202      202              
  Lines       15542    15530      -12     
==========================================
+ Hits        14101    14108       +7     
+ Misses       1149     1130      -19     
  Partials      292      292
Impacted Files Coverage Δ
Libplanet.Tests/Net/SwarmTest.cs 98.94% <100%> (-0.01%) ⬇️
Libplanet/Net/Swarm.cs 85.79% <96.87%> (+1%) ⬆️
Libplanet/Net/Protocols/KademliaProtocol.cs 67.27% <0%> (+0.77%) ⬆️

@longfin longfin force-pushed the feature/refactor-swarm-ctor branch 4 times, most recently from 67e9f6e to 9d5810e Compare October 15, 2019 13:34
@longfin longfin marked this pull request as ready for review October 15, 2019 14:00
@longfin longfin changed the title [WIP] Refactor Swarm<T> constructor Refactor Swarm<T> constructor Oct 15, 2019
earlbread
earlbread previously approved these changes Oct 16, 2019
limebell
limebell previously approved these changes Oct 16, 2019
@dahlia dahlia requested review from a team and removed request for libplanet October 16, 2019 05:11
CHANGES.md Outdated Show resolved Hide resolved
CHANGES.md Outdated Show resolved Hide resolved
CHANGES.md Outdated Show resolved Hide resolved
CHANGES.md Outdated Show resolved Hide resolved
moreal
moreal previously approved these changes Oct 16, 2019
Co-Authored-By: Hong Minhee <hong.minhee@gmail.com>
@longfin longfin dismissed stale reviews from moreal, limebell, and earlbread via f2dcd26 October 16, 2019 05:19
@longfin longfin merged commit 95c5e04 into planetarium:master Oct 16, 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.

5 participants