| Index: tokenserver/appengine/impl/utils/revocation/id.go
|
| diff --git a/tokenserver/appengine/impl/utils/revocation/id.go b/tokenserver/appengine/impl/utils/revocation/id.go
|
| index 8e2a3db3d2ee59875d5a770edb395b4388405267..5976c2cc4d8ced63ffc6f11649dfb8f2b439a1e2 100644
|
| --- a/tokenserver/appengine/impl/utils/revocation/id.go
|
| +++ b/tokenserver/appengine/impl/utils/revocation/id.go
|
| @@ -8,7 +8,7 @@ import (
|
| "golang.org/x/net/context"
|
|
|
| "github.com/luci/gae/service/datastore"
|
| - "github.com/luci/luci-go/common/errors"
|
| + "github.com/luci/luci-go/common/retry"
|
| )
|
|
|
| // GenerateTokenID produces an int64 that can be used as a token identifier.
|
| @@ -24,7 +24,7 @@ func GenerateTokenID(c context.Context, kind string) (int64, error) {
|
| datastore.NewKey(c, kind, "", 0, nil),
|
| }
|
| if err := datastore.AllocateIDs(c, keys); err != nil {
|
| - return 0, errors.WrapTransient(err)
|
| + return 0, retry.Tag.Apply(err)
|
| }
|
| return keys[0].IntID(), nil
|
| }
|
|
|