Merge pull request #9968 from Quasilyte/quasilyte/fixCaseOrder

etcdctl/ctlv2/command: fix type switch case order
This commit is contained in:
Xiang Li 2018-07-29 11:38:31 -07:00 committed by GitHub
commit 93be31d43a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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