pkg/srv: fix error checks from resolveTCPAddr

So that 'terr' can be returned later.

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
release-3.2
Gyu-Ho Lee 2017-05-11 10:53:03 -07:00
parent 386374a6d0
commit 3505c254e1
1 changed files with 1 additions and 1 deletions

View File

@ -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 := ""