| Index: appengine/gaeauth/client/client.go
|
| diff --git a/appengine/gaeauth/client/client.go b/appengine/gaeauth/client/client.go
|
| index b9213b1b05381b56d95cf428848c94fc31a182f5..2a116e3fd6b0a0c917748fab536550e3075465e5 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/transient"
|
| )
|
|
|
| // 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, transient.Tag.Apply(err)
|
| }
|
| logging.Debugf(c, "The token expires in %s", exp.Sub(clock.Now(c)))
|
|
|
|
|