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

Separate timeouts in Swarm<T> to SwarmOptions #926

Merged
merged 2 commits into from
Jul 15, 2020

Conversation

earlbread
Copy link
Contributor

Separate timeouts in Swarm<T> to SwarmOptions to be configurable.

longfin
longfin previously approved these changes Jul 14, 2020

namespace Libplanet.Net
{
public class SwarmOptions
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about using struct instead of class?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made it to a class to use initializers. Would it be better to change it to struct?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe... because it seems just data class. but on the other way, it isn't a big deal.

Libplanet/Net/Swarm.cs Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jul 14, 2020

Codecov Report

Merging #926 into master will decrease coverage by 0.00%.
The diff coverage is 88.23%.

@@            Coverage Diff             @@
##           master     #926      +/-   ##
==========================================
- Coverage   87.83%   87.82%   -0.01%     
==========================================
  Files         260      261       +1     
  Lines       24192    24196       +4     
==========================================
+ Hits        21248    21250       +2     
- Misses       1530     1531       +1     
- Partials     1414     1415       +1     
Impacted Files Coverage Δ
Libplanet/Net/Swarm.cs 85.53% <84.61%> (ø)
Libplanet/Net/SwarmOptions.cs 100.00% <100.00%> (ø)
Libplanet/Net/Protocols/KBucket.cs 92.37% <0.00%> (-2.55%) ⬇️
Libplanet/Crypto/PrivateKey.cs 85.34% <0.00%> (-0.87%) ⬇️
Libplanet.Tests/Net/Protocols/TestTransport.cs 77.30% <0.00%> (+0.61%) ⬆️

@dahlia dahlia added the network Related to networking (Libplanet.Net) label Jul 14, 2020
@earlbread earlbread merged commit 2054441 into planetarium:master Jul 15, 2020
@earlbread earlbread deleted the swarm-options branch July 15, 2020 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
network Related to networking (Libplanet.Net)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants