mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
pkg/srv: fix error checks from resolveTCPAddr
So that 'terr' can be returned later. Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
386374a6d0
commit
3505c254e1
@ -55,7 +55,7 @@ func GetCluster(service, name, dns string, apurls types.URLs) ([]string, error)
|
||||
host := net.JoinHostPort(srv.Target, port)
|
||||
tcpAddr, terr := resolveTCPAddr("tcp", host)
|
||||
if terr != nil {
|
||||
terr = err
|
||||
err = terr
|
||||
continue
|
||||
}
|
||||
n := ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user