Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(328)

Unified Diff: milo/build_source/buildbucket/builder.go

Issue 2951393002: [errors] de-specialize Transient in favor of Tags. (Closed)
Patch Set: copyright Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: milo/build_source/buildbucket/builder.go
diff --git a/milo/build_source/buildbucket/builder.go b/milo/build_source/buildbucket/builder.go
index 5a5a83ed7c1b8e923f9885b0920c9b2b40813a56..4df715f347601b8e3ab1a8c0e51509d2b62155d4 100644
--- a/milo/build_source/buildbucket/builder.go
+++ b/milo/build_source/buildbucket/builder.go
@@ -43,7 +43,7 @@ func search(c context.Context, client *buildbucket.Service, req *buildbucket.Sea
var err error
res, err = req.Do()
if apiErr, ok := err.(*googleapi.Error); ok && apiErr.Code >= 500 {
- err = errors.WrapTransient(apiErr)
+ err = retry.Tag.Apply(apiErr)
}
return err
},

Powered by Google App Engine
This is Rietveld 408576698