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

Don't throw exception when connecting to all neighbors fails #933

Merged
merged 2 commits into from Jul 23, 2020

Conversation

earlbread
Copy link
Contributor

This PR changes to not throw an exception in Swarm.BootstrapAsync() when connecting to all neighbors fails.

longfin
longfin previously approved these changes Jul 23, 2020
limebell
limebell previously approved these changes Jul 23, 2020
moreal
moreal previously approved these changes Jul 23, 2020
@codecov
Copy link

codecov bot commented Jul 23, 2020

Codecov Report

Merging #933 into master will increase coverage by 0.07%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #933      +/-   ##
==========================================
+ Coverage   87.96%   88.03%   +0.07%     
==========================================
  Files         263      263              
  Lines       24223    24200      -23     
==========================================
- Hits        21307    21304       -3     
+ Misses       1512     1489      -23     
- Partials     1404     1407       +3     
Impacted Files Coverage Δ
Libplanet/Net/Protocols/KademliaProtocol.cs 68.19% <ø> (+2.60%) ⬆️
Libplanet/Net/BlockCompletion.cs 94.18% <0.00%> (-0.88%) ⬇️
Libplanet.RocksDBStore/RocksDBStore.cs 95.61% <0.00%> (+0.31%) ⬆️

CHANGES.md Outdated Show resolved Hide resolved
!(task.Exception is null) &&
task.Exception.InnerExceptions.All(ex => ex is TimeoutException)))
{
throw new TimeoutException(
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we log inner exceptions in other places? If not it might better to log them here. 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@earlbread earlbread dismissed stale reviews from moreal, limebell, and longfin via c9ae648 July 23, 2020 08:16
earlbread and others added 2 commits July 23, 2020 17:23
Co-authored-by: Hong Minhee (洪 民憙) <hong.minhee@gmail.com>
@earlbread
Copy link
Contributor Author

@earlbread earlbread requested a review from dahlia July 23, 2020 08:28
@earlbread earlbread merged commit cd08a25 into planetarium:master Jul 23, 2020
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.

None yet

5 participants