Browse Source

clientv3: return getToken error when retryAuth

Shaun 6 years ago
parent
commit
3754767dbc
1 changed files with 1 additions and 1 deletions
  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.String("target", cc.Target()),
 						zap.Error(gterr),
 						zap.Error(gterr),
 					)
 					)
-					return lastErr // return the original error for simplicity
+					return gterr // lastErr must be invalid auth token
 				}
 				}
 				continue
 				continue
 			}
 			}