Index: tokenserver/appengine/impl/machinetoken/rpc_mint_machine_token.go |
diff --git a/tokenserver/appengine/impl/machinetoken/rpc_mint_machine_token.go b/tokenserver/appengine/impl/machinetoken/rpc_mint_machine_token.go |
index cf873bc12b57d337c7669626a93a944268cadfe3..a5122f8459fb91be5e7ec776fd2557384970986d 100644 |
--- a/tokenserver/appengine/impl/machinetoken/rpc_mint_machine_token.go |
+++ b/tokenserver/appengine/impl/machinetoken/rpc_mint_machine_token.go |
@@ -17,9 +17,9 @@ import ( |
"github.com/luci/gae/service/info" |
"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/proto/google" |
+ "github.com/luci/luci-go/common/retry/transient" |
"github.com/luci/luci-go/server/auth" |
"github.com/luci/luci-go/server/auth/signing" |
@@ -216,7 +216,7 @@ func (r *MintMachineTokenRPC) mintLuciMachineToken(c context.Context, args mintT |
}, |
}, |
}, body, nil |
- case errors.IsTransient(err): |
+ case transient.Tag.In(err): |
return nil, nil, grpc.Errorf(codes.Internal, "failed to generate machine token - %s", err) |
default: |
resp, err := r.mintingErrorResponse(c, minter.ErrorCode_MACHINE_TOKEN_MINTING_ERROR, "%s", err) |