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

Add PreloadBlockDownloadFailed event handler #694

Merged
merged 5 commits into from
Dec 2, 2019

Conversation

earlbread
Copy link
Contributor

When the block downloading fails in Swarm<T>.PreloadAsync, Swarm<T> became to call Swarm<T>.PreloadBlockDownloadFailed event handler. If the event handler doesn't exist, Swarm<T> throws SwarmException.

@earlbread earlbread self-assigned this Nov 26, 2019
@earlbread earlbread force-pushed the preload-failed-event branch from 4be86af to 7dd35f9 Compare November 26, 2019 09:19
@codecov
Copy link

codecov bot commented Nov 26, 2019

Codecov Report

Merging #694 into master will increase coverage by 0.1%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master     #694     +/-   ##
=========================================
+ Coverage   86.11%   86.21%   +0.1%     
=========================================
  Files         220      221      +1     
  Lines       18096    18134     +38     
=========================================
+ Hits        15583    15634     +51     
+ Misses       1441     1426     -15     
- Partials     1072     1074      +2
Impacted Files Coverage Δ
Libplanet/Net/Swarm.cs 81.8% <100%> (+0.32%) ⬆️
Libplanet.Tests/Net/SwarmTest.cs 95.8% <100%> (+0.08%) ⬆️
Libplanet/Net/PreloadBlockDownloadFailEventArgs.cs 100% <100%> (ø)
Libplanet.Tests/Net/Protocols/TestSwarm.cs 79.63% <0%> (+0.9%) ⬆️
Libplanet/Store/DefaultStore.cs 85.65% <0%> (+1.14%) ⬆️

@earlbread earlbread requested review from dahlia November 26, 2019 09:28
@earlbread earlbread force-pushed the preload-failed-event branch from 7dd35f9 to 1b9415c Compare November 26, 2019 09:48
@earlbread earlbread requested a review from dahlia November 26, 2019 09:52
dahlia
dahlia previously approved these changes Nov 26, 2019
dahlia
dahlia previously approved these changes Nov 26, 2019
limebell
limebell previously approved these changes Nov 27, 2019
moreal
moreal previously approved these changes Nov 27, 2019
@earlbread earlbread dismissed stale reviews from moreal, limebell, and dahlia via 55d3ac6 November 28, 2019 04:33
@earlbread earlbread force-pushed the preload-failed-event branch from 304bd20 to 55d3ac6 Compare November 28, 2019 04:33
@earlbread earlbread force-pushed the preload-failed-event branch from 1a7555f to e989ee4 Compare November 28, 2019 08:33
dahlia
dahlia previously approved these changes Nov 28, 2019
longfin
longfin previously approved these changes Nov 28, 2019
@earlbread earlbread dismissed stale reviews from longfin and dahlia via e614ba1 November 28, 2019 08:51
@earlbread earlbread force-pushed the preload-failed-event branch from e989ee4 to e614ba1 Compare November 28, 2019 08:51
longfin
longfin previously approved these changes Nov 28, 2019
dahlia
dahlia previously approved these changes Nov 29, 2019
longfin
longfin previously approved these changes Nov 29, 2019
@earlbread earlbread requested review from moreal and removed request for moreal November 29, 2019 12:20
@earlbread earlbread dismissed stale reviews from longfin and dahlia via d6fe8ac December 2, 2019 04:40
@earlbread earlbread force-pushed the preload-failed-event branch from 9b24187 to d6fe8ac Compare December 2, 2019 04:40
@earlbread earlbread requested review from dahlia and longfin December 2, 2019 04:42
@earlbread earlbread merged commit 7daa2f6 into planetarium:master Dec 2, 2019
@earlbread earlbread deleted the preload-failed-event branch December 2, 2019 05:26
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