clientv3: return getToken error when retryAuth

release-3.4
Shaun 2019-05-22 18:57:19 +08:00 committed by shaun.fu
parent 416a5390c4
commit 3754767dbc
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ func (c *Client) unaryClientInterceptor(logger *zap.Logger, optFuncs ...retryOpt
zap.String("target", cc.Target()),
zap.Error(gterr),
)
return lastErr // return the original error for simplicity
return gterr // lastErr must be invalid auth token
}
continue
}