jmalloc / ax

A message-driven application toolkit for Go. [EXPERIMENTAL]
MIT License
9 stars 3 forks source link

Add new indefinite retry policy changing it to default #162

Closed danilvpetrov closed 5 years ago

danilvpetrov commented 5 years ago

This PR introduces a new indefinite retry policy and sets it to be default retry policy in ax.

The policy introduced allows users to specify maximum retry backoff duration and randomization factor that assisting 'jittering' message retries within a specific range.

codecov-io commented 5 years ago

Codecov Report

Merging #162 into master will decrease coverage by 0.19%. The diff coverage is 8%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #162     +/-   ##
=========================================
- Coverage   28.16%   27.96%   -0.2%     
=========================================
  Files          79       79             
  Lines        3075     3100     +25     
=========================================
+ Hits          866      867      +1     
- Misses       2185     2209     +24     
  Partials       24       24
Impacted Files Coverage Δ
endpoint/retry.go 5.12% <8%> (-2.02%) :arrow_down:

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 786982f...27f0ab6. Read the comment docs.

danilvpetrov commented 5 years ago

This PR is closed in favour of this commit