Index: appengine/gaeauth/client/client.go |
diff --git a/appengine/gaeauth/client/client.go b/appengine/gaeauth/client/client.go |
index b9213b1b05381b56d95cf428848c94fc31a182f5..6bde22e9435ed92a734c97077ffab8b5ab8eaac8 100644 |
--- a/appengine/gaeauth/client/client.go |
+++ b/appengine/gaeauth/client/client.go |
@@ -22,8 +22,8 @@ import ( |
"github.com/luci/luci-go/common/data/caching/proccache" |
"github.com/luci/luci-go/common/data/rand/mathrand" |
"github.com/luci/luci-go/common/data/stringset" |
- "github.com/luci/luci-go/common/errors" |
"github.com/luci/luci-go/common/logging" |
+ "github.com/luci/luci-go/common/retry" |
) |
// GetAccessToken returns an OAuth access token representing app's service |
@@ -49,7 +49,7 @@ func GetAccessToken(c context.Context, scopes []string) (*oauth2.Token, error) { |
logging.Debugf(c, "Getting an access token for scopes %q", strings.Join(scopes, ", ")) |
accessToken, exp, err := info.AccessToken(c, scopes...) |
if err != nil { |
- return nil, errors.WrapTransient(err) |
+ return nil, retry.Tag.Apply(err) |
} |
logging.Debugf(c, "The token expires in %s", exp.Sub(clock.Now(c))) |