aboutsummaryrefslogtreecommitdiff
path: root/vendor/cloud.google.com/go/storage/not_go110.go
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2018-08-23 22:51:21 +0100
committerNiall Sheridan <nsheridan@gmail.com>2018-08-24 13:45:03 +0100
commitf8e3dea19012ccf05965d10255789eec33c2ebcf (patch)
tree8522ceada8bc7270648f29615b89550db910cb6c /vendor/cloud.google.com/go/storage/not_go110.go
parent91f9bc722152146466523861162b85195f99875b (diff)
Update deps
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
}