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

Unified Diff: tokenserver/appengine/impl/utils/tokensigning/inspector.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: tokenserver/appengine/impl/utils/tokensigning/inspector.go
diff --git a/tokenserver/appengine/impl/utils/tokensigning/inspector.go b/tokenserver/appengine/impl/utils/tokensigning/inspector.go
index 6820a7dd0a59388d0faffa2b3a367b3a0a08cae1..8f1036bb4bc4d226ce5c38c4660f7319d41e3c5c 100644
--- a/tokenserver/appengine/impl/utils/tokensigning/inspector.go
+++ b/tokenserver/appengine/impl/utils/tokensigning/inspector.go
@@ -14,7 +14,7 @@ import (
"golang.org/x/net/context"
"github.com/luci/luci-go/common/clock"
- "github.com/luci/luci-go/common/errors"
+ "github.com/luci/luci-go/common/retry/transient"
"github.com/luci/luci-go/server/auth/signing"
)
@@ -153,7 +153,7 @@ func (i *Inspector) checkLifetime(c context.Context, body proto.Message) string
func (i *Inspector) checkSignature(c context.Context, unwrapped *Unwrapped) (string, error) {
certsBundle, err := i.Certificates.Certificates(c)
if err != nil {
- return "", errors.WrapTransient(err)
+ return "", transient.Tag.Apply(err)
}
cert, err := certsBundle.CertificateForKey(unwrapped.KeyID)
if err != nil {

Powered by Google App Engine
This is Rietveld 408576698