Ver Fonte

clientv3: return getToken error when retryAuth

Shaun há 7 anos atrás
pai
commit
3754767dbc
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      clientv3/retry_interceptor.go

+ 1 - 1
clientv3/retry_interceptor.go

@@ -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
 			}