mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
clientv3: retry mutable ops on "no connection available"
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
93f12da1be
commit
c669ff9765
@ -45,7 +45,8 @@ func isNonRepeatableStopError(err error) bool {
|
||||
if ev.Code() != codes.Unavailable {
|
||||
return true
|
||||
}
|
||||
return rpctypes.ErrorDesc(err) != "there is no address available"
|
||||
desc := rpctypes.ErrorDesc(err)
|
||||
return desc != "there is no address available" && desc != "there is no connection available"
|
||||
}
|
||||
|
||||
func (c *Client) newRetryWrapper(isStop retryStopErrFunc) retryRPCFunc {
|
||||
|
Loading…
x
Reference in New Issue
Block a user