| Index: common/auth/internal/common.go
|
| diff --git a/common/auth/internal/common.go b/common/auth/internal/common.go
|
| index 45905a767afd5e98d782cbdd004baab36eaed327..dee7ee596aedf485f4e914ad51a5c543aac6aa77 100644
|
| --- a/common/auth/internal/common.go
|
| +++ b/common/auth/internal/common.go
|
| @@ -18,6 +18,7 @@ import (
|
| "github.com/luci/luci-go/common/clock"
|
| "github.com/luci/luci-go/common/data/rand/mathrand"
|
| "github.com/luci/luci-go/common/errors"
|
| + "github.com/luci/luci-go/common/retry/transient"
|
| )
|
|
|
| // expiryRandInterval is used by TokenExpiresInRnd.
|
| @@ -256,7 +257,7 @@ func grabToken(src oauth2.TokenSource) (*oauth2.Token, error) {
|
| // error a bunch of times is not very bad, so pick safer approach and assume
|
| // any error is transient. Revoked refresh token or bad credentials (most
|
| // common source of fatal errors) is already handled above.
|
| - return nil, errors.WrapTransient(err)
|
| + return nil, transient.Tag.Apply(err)
|
| default:
|
| return tok, nil
|
| }
|
|
|