mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #9968 from Quasilyte/quasilyte/fixCaseOrder
etcdctl/ctlv2/command: fix type switch case order
This commit is contained in:
commit
93be31d43a
@ -270,14 +270,14 @@ func isConnectionError(err error) bool {
|
||||
return true
|
||||
}
|
||||
return isConnectionError(t.Err)
|
||||
case net.Error:
|
||||
if t.Timeout() {
|
||||
return true
|
||||
}
|
||||
case syscall.Errno:
|
||||
if t == syscall.ECONNREFUSED {
|
||||
return true
|
||||
}
|
||||
case net.Error:
|
||||
if t.Timeout() {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user