stratumn / go-core

Stratumn's core utilities to create decentralized applications and networks
Apache License 2.0
0 stars 0 forks source link

batchfossilizer: push failed fossils back to the queue (fixes #505). #506

Closed t-bast closed 5 years ago

t-bast commented 5 years ago

In case fossilization failed (because of the blockcypher API for example) we push the fossils back to the queue. This way they will be fossilized at the next batch. We'll need to watch the queue size though in case a real issue happens (it's easy to setup an alert for that in AWS).


This change is Reviewable

codecov[bot] commented 5 years ago

Codecov Report

Merging #506 into master will increase coverage by 0.03%. The diff coverage is 64.28%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #506      +/-   ##
==========================================
+ Coverage   71.42%   71.45%   +0.03%     
==========================================
  Files          99       99              
  Lines        5641     5655      +14     
==========================================
+ Hits         4029     4041      +12     
- Misses       1223     1225       +2     
  Partials      389      389
Impacted Files Coverage Δ
batchfossilizer/batchfossilizer.go 83.45% <64.28%> (+0.26%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update ba68744...b718875. Read the comment docs.