Skip to content

Releases: kamilsk/retry

Performance improvements

10 Jun 09:10
Compare
Choose a tag to compare

Incompatible changes

  • Action: changed from func(attempt uint) error to func(context.Context) error
  • How: changed from []func(attempt uint, err error) bool to []func(strategy.Breaker, uint, error) bool
  • Retry: removed
  • Try: removed
  • TryContext: removed
  • IsInterrupted: removed
  • IsRecovered: removed
  • BreakCloser: not supported anymore
  • Breaker: extended by Err() error

strategy

  • Strategy: changed from func(attempt uint, err error) bool to func(breaker Breaker, attempt uint, err error) bool

Compatible changes

strategy

  • ErrorHandler: added
  • CheckError: added
  • NetworkError: added

Improvements

backoff

  • Do: no run goroutine
  • Fibonacci: performance

How to switch

  • Provide a valid generator for jitters if you used nil before.
  • Use Do or Go instead of Retry, Try, or TryContext.
    • Do, if action is interruptible by context.
    • Go, if not and you need latency guarantees.
  • Close resources of BreakCloser manually.

v4.8.0...v5.0.0

v4.0.0-rc4

19 Feb 08:04
Compare
Choose a tag to compare

Changelog

383baa1 fix go vet
f606de4 Merge branch 'v3' into v4
f47577f Merge branch 'master' into v3
939feaf improve code quality
600e246 extend examples
03c4cf1 update breaker version
386e39a update v4.x.y description
07b7376 experiments with travis ci matrix

v3.4.4

19 Feb 07:50
Compare
Choose a tag to compare

Changelog

f47577f Merge branch 'master' into v3
939feaf improve code quality

3.3.3

19 Feb 07:43
Compare
Choose a tag to compare

Changelog

939feaf improve code quality
a977c7f remove scrutinizer configuration

v4.0.0-rc3

18 Feb 08:00
Compare
Choose a tag to compare

Changelog

37e1c81 use httptest server for examples
9f04277 update breaker version and examples, add deps and goimports target

v4.0.0-rc2

17 Feb 14:25
Compare
Choose a tag to compare

Changelog

c7badc5 fix #126: optimize fibonacci number algorithm
fb1db0d fix #125: remove strategy.Infinite

v4.0.0-rc1

17 Feb 13:55
Compare
Choose a tag to compare

Changelog

a776414 exclude examples
e58fda3 vendoring deps
45c1f26 try to fix goreleaser
c80cde8 add examples
c167d26 fix #109: remove leaky components; fix #127: make tests stable
8f52d21 issue #124: remove classifier package
5aa317f update readme
cac6d1f Merge branch 'v3' into v4
0d8df3f define go import path for ci
3d37643 Merge branch 'master' into v3
a977c7f remove scrutinizer configuration
fdc0bc8 add description for v4
8607f07 define correct go module
dab0997 update tests
a3ce426 completely switch to go mod
0446f73 switch to v3
032b321 experiments with go mod
8d75960 up required go version to 1.9
42a36ac update deps for retry tool
7ece618 try to fix build on go1.10
2579866 issue #104: add version command
0c2ffff issue #108: define generate script
b8c1d4c issue #104: import github.com/spf13/cobra
d58b933 fix issue #121: make visible cmd/retry for go1.10+
c33b62e add go 1.11
a1441f5 fix research link
197ae3f sync with master

v3.4.3

16 Feb 20:00
Compare
Choose a tag to compare

Changelog

07b7376 experiments with travis ci matrix
0d8df3f define go import path for ci
3d37643 Merge branch 'master' into v3
a977c7f remove scrutinizer configuration
dab0997 update tests
a3ce426 completely switch to go mod
0446f73 switch to v3
032b321 experiments with go mod

3.3.2

16 Feb 17:19
Compare
Choose a tag to compare

Changelog

2455df1 fix linters
f4fb867 update readme
7227e52 remove examples, add go 1.11 to go matrix
4e9c251 remove makes
9b8be73 update readme
661f432 update license
d797c15 hide examples
d202d5f remove .github dir

v3.4.2

13 Feb 07:19
Compare
Choose a tag to compare

Changelog

dab0997 update tests