mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 13:55:55 +00:00
Remove unnecessary check, test was moved further up in scope
This commit is contained in:
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…
x
Reference in New Issue
Block a user