| Index: server/auth/delegation.go
|
| diff --git a/server/auth/delegation.go b/server/auth/delegation.go
|
| index 621335b2095108a919b99f42b141998345124430..5c5eb1170730729178676857c66c52e6acee052e 100644
|
| --- a/server/auth/delegation.go
|
| +++ b/server/auth/delegation.go
|
| @@ -13,7 +13,6 @@ 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/logging"
|
| "github.com/luci/luci-go/common/retry"
|
| "github.com/luci/luci-go/grpc/grpcutil"
|
| @@ -25,7 +24,7 @@ import (
|
| )
|
|
|
| var (
|
| - // ErrTokenServerNotConfigured is returned by MintDelegationToken if the
|
| + // ErrTokenServiceNotConfigured is returned by MintDelegationToken if the
|
| // token service URL is not configured. This usually means the corresponding
|
| // auth service is not paired with a token server.
|
| ErrTokenServiceNotConfigured = fmt.Errorf("auth: token service URL is not configured")
|
| @@ -235,7 +234,7 @@ func MintDelegationToken(ctx context.Context, p DelegationTokenParams) (*delegat
|
| })
|
| if err != nil {
|
| err = grpcutil.WrapIfTransient(err)
|
| - if errors.IsTransient(err) {
|
| + if retry.Tag.In(err) {
|
| return nil, err, "ERROR_TRANSIENT_IN_MINTING"
|
| }
|
| return nil, err, "ERROR_MINTING"
|
|
|