aboutsummaryrefslogtreecommitdiff
path: root/vendor/cloud.google.com/go/storage/not_go110.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/cloud.google.com/go/storage/not_go110.go')
-rw-r--r--vendor/cloud.google.com/go/storage/not_go110.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/vendor/cloud.google.com/go/storage/not_go110.go b/vendor/cloud.google.com/go/storage/not_go110.go
index 700fde1..66fa45b 100644
--- a/vendor/cloud.google.com/go/storage/not_go110.go
+++ b/vendor/cloud.google.com/go/storage/not_go110.go
@@ -34,6 +34,8 @@ func shouldRetry(err error) bool {
// Unfortunately the error type is unexported, so we resort to string
// matching.
return strings.Contains(e.Error(), "REFUSED_STREAM")
+ case interface{ Temporary() bool }:
+ return e.Temporary()
default:
return false
}