*: implement a retry logic for auth old revision in the client

This commit is contained in:
Hitoshi Mitake
2021-08-28 23:47:14 +09:00
parent 79bbc8fdb7
commit dec6f72d68
4 changed files with 131 additions and 1 deletions

View File

@ -84,6 +84,7 @@ var toGRPCErrorMap = map[error]error{
auth.ErrAuthNotEnabled: rpctypes.ErrGRPCAuthNotEnabled,
auth.ErrInvalidAuthToken: rpctypes.ErrGRPCInvalidAuthToken,
auth.ErrInvalidAuthMgmt: rpctypes.ErrGRPCInvalidAuthMgmt,
auth.ErrAuthOldRevision: rpctypes.ErrGRPCAuthOldRevision,
// In sync with status.FromContextError
context.Canceled: rpctypes.ErrGRPCCanceled,