Родитель
f505d70bf9
Коммит
609551be1d
|
@ -1,8 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
## `v0.3.2`
|
||||
- Return error on retry. Was returning nil if not retryable.
|
||||
|
||||
## `v0.3.1`
|
||||
- Fix missing defer on spans
|
||||
- Return error on retry. Was returning nil if not retryable.
|
||||
|
||||
## `v0.3.0`
|
||||
- add opentracing support
|
||||
|
|
|
@ -2,5 +2,5 @@ package common
|
|||
|
||||
const (
|
||||
// Version is the semantic version of the library
|
||||
Version = "0.3.1"
|
||||
Version = "0.3.2"
|
||||
)
|
||||
|
|
2
retry.go
2
retry.go
|
@ -45,7 +45,7 @@ func Retry(times int, delay time.Duration, action func() (interface{}, error)) (
|
|||
time.Sleep(delay)
|
||||
continue
|
||||
} else {
|
||||
return nil, retryable
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
return item, nil
|
||||
|
|
Загрузка…
Ссылка в новой задаче