File tree Expand file tree Collapse file tree 6 files changed +20
-9
lines changed Expand file tree Collapse file tree 6 files changed +20
-9
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
7
7
## [ Unreleased]
8
8
9
+ ## [ 1.3.0] - 2023-05-08
10
+ ### Changed
11
+ - re-export ErrMaxAttemptsReached from github.com/go-playground/pkg to allow for more reusable coe between packages.
12
+
9
13
## [ 1.2.0] - 2023-05-07
10
14
### Added
11
15
- Added MaxAttempts(..) to configuration and ErrorMaxAttemptsReached to be returned by the Sleep(...) function when configured.
12
16
13
- [ Unreleased ] : https://github.com/go-playground/backoff-sys/compare/v1.2.0...HEAD
17
+ [ Unreleased ] : https://github.com/go-playground/backoff-sys/compare/v1.3.0...HEAD
18
+ [ 1.3.0 ] : https://github.com/go-playground/backoff-sys/compare/v1.3.0...v1.2.0
14
19
[ 1.2.0 ] : https://github.com/go-playground/backoff-sys/commit/v1.2.0
Original file line number Diff line number Diff line change 1
1
## Package backoff-sys
2
2
3
- <img align =" right " src =" https://raw.githubusercontent.com/go-playground/backoff-sys/master/logo.jpg " >![ Project status] ( https://img.shields.io/badge/version-1.2 .0-green.svg )
3
+ <img align =" right " src =" https://raw.githubusercontent.com/go-playground/backoff-sys/master/logo.jpg " >![ Project status] ( https://img.shields.io/badge/version-1.3 .0-green.svg )
4
4
[ ![ Actions Status] ( https://github.com/go-playground/backoff-sys/workflows/Lint%20%26%20Test/badge.svg )] ( https://github.com/go-playground/backoff-sys/actions )
5
5
[ ![ GoDoc] ( https://godoc.org/github.com/go-playground/backoff-sys?status.svg )] ( https://pkg.go.dev/github.com/go-playground/backoff-sys )
6
6
![ License] ( https://img.shields.io/dub/l/vibe-d.svg )
Original file line number Diff line number Diff line change @@ -2,15 +2,13 @@ package backoff
2
2
3
3
import (
4
4
"context"
5
- "errors"
5
+ "github.com/go-playground/pkg/v5/ errors"
6
6
"math"
7
7
"math/rand"
8
8
"time"
9
9
)
10
10
11
- var (
12
- ErrMaxAttemptsReached = errors .New ("max attempts reached" )
13
- )
11
+ var ErrMaxAttemptsReached = errorsext .ErrMaxAttemptsReached
14
12
15
13
// ExponentialBuilder helps to build the final exponential backoff entity
16
14
type ExponentialBuilder struct {
Original file line number Diff line number Diff line change 1
1
package backoff
2
2
3
3
import (
4
- . "github.com/go-playground/assert/v2"
5
-
6
4
"context"
5
+ . "github.com/go-playground/assert/v2"
7
6
"testing"
8
7
"time"
9
8
)
Original file line number Diff line number Diff line change @@ -2,4 +2,7 @@ module github.com/go-playground/backoff-sys
2
2
3
3
go 1.14
4
4
5
- require github.com/go-playground/assert/v2 v2.2.0
5
+ require (
6
+ github.com/go-playground/assert/v2 v2.2.0
7
+ github.com/go-playground/pkg/v5 v5.17.0
8
+ )
Original file line number Diff line number Diff line change
1
+ github.com/go-playground/assert/v2 v2.0.1 /go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4 =
1
2
github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s =
2
3
github.com/go-playground/assert/v2 v2.2.0 /go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4 =
4
+ github.com/go-playground/form/v4 v4.2.0 /go.mod h1:q1a2BY+AQUUzhl6xA/6hBetay6dEIhMHjgvJiGo6K7U =
5
+ github.com/go-playground/pkg/v5 v5.16.0 h1:A/GZ5kitZuKQOEG1zm5tD9UrQRGl69k+MSck6Vojel8 =
6
+ github.com/go-playground/pkg/v5 v5.16.0 /go.mod h1:eT8XZeFHnqZkfkpkbI8ayjfCw9GohV2/j8STbVmoR6s =
7
+ github.com/go-playground/pkg/v5 v5.17.0 h1:53iBrGO1BNTopcwem0lsBesULJZyH9OKtTntJAsE8I0 =
8
+ github.com/go-playground/pkg/v5 v5.17.0 /go.mod h1:eT8XZeFHnqZkfkpkbI8ayjfCw9GohV2/j8STbVmoR6s =
You can’t perform that action at this time.
0 commit comments