| Index: common/errors/transient.go
|
| diff --git a/common/errors/transient.go b/common/errors/transient.go
|
| index f15c3a9cadb9a0127b3d04320646681d8de91219..4fbef6cfe4a5637fb1b60784b70a853b9fc410c5 100644
|
| --- a/common/errors/transient.go
|
| +++ b/common/errors/transient.go
|
| @@ -17,10 +17,19 @@ type transientWrapper struct {
|
| error
|
| }
|
|
|
| +var _ interface {
|
| + Transient
|
| + Wrapped
|
| +} = transientWrapper{}
|
| +
|
| func (t transientWrapper) IsTransient() bool {
|
| return true
|
| }
|
|
|
| +func (t transientWrapper) InnerError() error {
|
| + return t.error
|
| +}
|
| +
|
| // IsTransient tests if a given error is Transient.
|
| func IsTransient(err error) bool {
|
| if t, ok := err.(Transient); ok {
|
|
|