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

Avoid overwrapped SetResult and SetException #864

Merged
merged 2 commits into from
May 7, 2020

Conversation

longfin
Copy link
Member

@longfin longfin commented May 7, 2020

This PR addresses #847 by ignoring InvalidOperationException during tcs.SetResult() and tcs.SetException().

@longfin longfin added the bug Something isn't working label May 7, 2020
@longfin longfin self-assigned this May 7, 2020
@longfin longfin added the network Related to networking (Libplanet.Net) label May 7, 2020
@longfin longfin requested review from dahlia, moreal and earlbread and removed request for dahlia May 7, 2020 07:49
@longfin longfin marked this pull request as ready for review May 7, 2020 07:49
Libplanet/Net/NetMQTransport.cs Outdated Show resolved Hide resolved
CHANGES.md Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented May 7, 2020

Codecov Report

Merging #864 into 0.9-maintenance will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@               Coverage Diff                @@
##           0.9-maintenance     #864   +/-   ##
================================================
  Coverage            87.56%   87.56%           
================================================
  Files                  250      250           
  Lines                22675    22675           
================================================
+ Hits                 19855    19856    +1     
- Misses                1472     1473    +1     
+ Partials              1348     1346    -2     
Impacted Files Coverage Δ
Libplanet/Net/NetMQTransport.cs 84.18% <100.00%> (-0.14%) ⬇️
Libplanet/Net/Protocols/KademliaProtocol.cs 64.63% <0.00%> (-0.39%) ⬇️
Libplanet.Tests/Net/SwarmTest.cs 95.09% <0.00%> (-0.08%) ⬇️
Libplanet.Tests/Net/SwarmTest.Preload.cs 99.21% <0.00%> (+0.22%) ⬆️
Libplanet/FixedSizedQueue.cs 100.00% <0.00%> (+18.75%) ⬆️

Libplanet/Net/NetMQTransport.cs Outdated Show resolved Hide resolved
Co-authored-by: Seunghun Lee <waydi1@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working network Related to networking (Libplanet.Net)
Projects
None yet
4 participants