projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67068b5
)
Add comment to workaround while waiting for upstream to merge PR.
author
Tom Clegg <tom@curii.com>
Wed, 31 Jan 2024 16:37:23 +0000
(11:37 -0500)
committer
Tom Clegg <tom@curii.com>
Wed, 31 Jan 2024 16:37:23 +0000
(11:37 -0500)
refs #21252
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>
sdk/go/arvados/client.go
patch
|
blob
|
history
diff --git
a/sdk/go/arvados/client.go
b/sdk/go/arvados/client.go
index 991de1caa90c4e2e98b96015415ebecb44525af8..7bc3d5bc420404559939247b04cb4b7849c620d6 100644
(file)
--- a/
sdk/go/arvados/client.go
+++ b/
sdk/go/arvados/client.go
@@
-307,6
+307,11
@@
func (c *Client) Do(req *http.Request) (*http.Response, error) {
if c.Timeout == 0 {
return false, nil
}
+ // This check can be removed when
+ // https://github.com/hashicorp/go-retryablehttp/pull/210
+ // (or equivalent) is merged and we update go.mod.
+ // Until then, it is needed to pass
+ // TestNonRetryableStdlibError.
if respErr != nil && reqErrorRe.MatchString(respErr.Error()) {
return false, nil
}