| Index: common/retry/transient.go
|
| diff --git a/common/retry/transient.go b/common/retry/transient.go
|
| index c76c8850054329ff7c2e377ef876c72cdf8a123d..ed2a3a01926a70d0f8004c4f3a223b3c602cfcdc 100644
|
| --- a/common/retry/transient.go
|
| +++ b/common/retry/transient.go
|
| @@ -29,7 +29,11 @@ func (i *transientOnlyIterator) Next(ctx context.Context, err error) time.Durati
|
| // TransientOnly returns an Iterator that wraps another Iterator. It will fall
|
| // through to the wrapped Iterator if a transient error is encountered;
|
| // otherwise, it will not retry.
|
| +// Returns nil if f is nil.
|
| func TransientOnly(f Factory) Factory {
|
| + if f == nil {
|
| + return nil
|
| + }
|
| return wrap(f, func(it Iterator) Iterator {
|
| return &transientOnlyIterator{it}
|
| })
|
|
|