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

Unified Diff: common/config/impl/remote/remote.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: common/config/impl/remote/remote.go
diff --git a/common/config/impl/remote/remote.go b/common/config/impl/remote/remote.go
index 7989512a31cc84b050919daea61f724c023c6ac8..50c44567f360d5574831a29eadc6d39822acbacd 100644
--- a/common/config/impl/remote/remote.go
+++ b/common/config/impl/remote/remote.go
@@ -15,8 +15,8 @@ import (
configApi "github.com/luci/luci-go/common/api/luci_config/config/v1"
"github.com/luci/luci-go/common/config"
- "github.com/luci/luci-go/common/errors"
"github.com/luci/luci-go/common/logging"
+ "github.com/luci/luci-go/common/retry"
)
// ClientFactory returns HTTP client to use (given a context).
@@ -293,7 +293,7 @@ func apiErr(e error) error {
return config.ErrNoConfig
}
if err.Code >= 500 {
- return errors.WrapTransient(err)
+ return retry.Tag.Apply(err)
}
return err
}

Powered by Google App Engine
This is Rietveld 408576698