vendor: update all dependencies to latest versions

This commit is contained in:
Nick Craig-Wood
2018-01-16 13:20:59 +00:00
parent 8e83fb6fb9
commit 7d3a17725d
4878 changed files with 1974213 additions and 201199 deletions
+6 -1
View File
@@ -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
}
}