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

Unified Diff: scheduler/appengine/task/utils/apiclient.go

Issue 2951393002: [errors] de-specialize Transient in favor of Tags. (Closed)
Patch Set: more refactor 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: scheduler/appengine/task/utils/apiclient.go
diff --git a/scheduler/appengine/task/utils/apiclient.go b/scheduler/appengine/task/utils/apiclient.go
index 85f83252c1a0bdcd6a0d935cd37b50b810d5319b..da693a2ab3c91c51cda43efaf2f792ca86c92941 100644
--- a/scheduler/appengine/task/utils/apiclient.go
+++ b/scheduler/appengine/task/utils/apiclient.go
@@ -5,7 +5,7 @@
package utils
import (
- "github.com/luci/luci-go/common/errors"
+ "github.com/luci/luci-go/common/retry/transient"
"google.golang.org/api/googleapi"
)
@@ -26,7 +26,7 @@ func IsTransientAPIError(err error) bool {
// necessary.
func WrapAPIError(err error) error {
if IsTransientAPIError(err) {
- return errors.WrapTransient(err)
+ return transient.Tag.Apply(err)
}
return err
}

Powered by Google App Engine
This is Rietveld 408576698