mirror of https://github.com/hashicorp/consul
Remove unnecessary check, test was moved further up in scope
parent
ae53e0b2a1
commit
1c9d74a337
|
@ -390,9 +390,7 @@ func (c *Client) RPC(method string, args interface{}, reply interface{}) error {
|
|||
var server *serverParts
|
||||
if c.lastServer != nil && lastRPCTime < clientRPCConnMaxIdle {
|
||||
server = c.lastServer
|
||||
if server != nil {
|
||||
goto TRY_RPC
|
||||
}
|
||||
goto TRY_RPC
|
||||
}
|
||||
|
||||
// Bail if we can't find any servers
|
||||
|
|
Loading…
Reference in New Issue