| Index: common/auth/internal/service.go
|
| diff --git a/common/auth/internal/service.go b/common/auth/internal/service.go
|
| index 7b1724dd85328f6bd74d88f86ad81154b17084cc..c166fd7f423db03ef25d09a8afc07460588a613b 100644
|
| --- a/common/auth/internal/service.go
|
| +++ b/common/auth/internal/service.go
|
| @@ -15,8 +15,8 @@ import (
|
| "golang.org/x/oauth2/google"
|
| "golang.org/x/oauth2/jwt"
|
|
|
| - "github.com/luci/luci-go/common/errors"
|
| "github.com/luci/luci-go/common/logging"
|
| + "github.com/luci/luci-go/common/retry/transient"
|
| )
|
|
|
| type serviceAccountTokenProvider struct {
|
| @@ -87,7 +87,7 @@ func (p *serviceAccountTokenProvider) MintToken(ctx context.Context, base *oauth
|
| switch newTok, err := grabToken(cfg.TokenSource(ctx)); {
|
| case err == nil:
|
| return newTok, nil
|
| - case errors.IsTransient(err):
|
| + case transient.Tag.In(err):
|
| logging.Warningf(ctx, "Error when creating access token - %s", err)
|
| return nil, err
|
| default:
|
|
|