vendor: update all dependencies to latest versions
This commit is contained in:
+6
-1
@@ -157,6 +157,11 @@ func extractRetryDelay(err error) (time.Duration, bool) {
|
||||
// TODO: consider using https://github.com/googleapis/gax-go once it
|
||||
// becomes available internally.
|
||||
func runRetryable(ctx context.Context, f func(context.Context) error) error {
|
||||
return toSpannerError(runRetryableNoWrap(ctx, f))
|
||||
}
|
||||
|
||||
// Like runRetryable, but doesn't wrap the returned error in a spanner.Error.
|
||||
func runRetryableNoWrap(ctx context.Context, f func(context.Context) error) error {
|
||||
var funcErr error
|
||||
retryCount := 0
|
||||
for {
|
||||
@@ -187,6 +192,6 @@ func runRetryable(ctx context.Context, f func(context.Context) error) error {
|
||||
continue
|
||||
}
|
||||
// Error isn't retryable / no error, return immediately.
|
||||
return toSpannerError(funcErr)
|
||||
return funcErr
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user