mirror of https://github.com/hashicorp/consul
Merge pull request #1028 from sebastianmarkow/master
Remove unreachable error handling in AgentRPC.listen()pull/1030/head
commit
8ffa0ea8b7
|
@ -304,11 +304,6 @@ func (i *AgentRPC) listen() {
|
||||||
}
|
}
|
||||||
client.dec = codec.NewDecoder(client.reader, msgpackHandle)
|
client.dec = codec.NewDecoder(client.reader, msgpackHandle)
|
||||||
client.enc = codec.NewEncoder(client.writer, msgpackHandle)
|
client.enc = codec.NewEncoder(client.writer, msgpackHandle)
|
||||||
if err != nil {
|
|
||||||
i.logger.Printf("[ERR] agent.rpc: Failed to create decoder: %v", err)
|
|
||||||
conn.Close()
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
// Register the client
|
// Register the client
|
||||||
i.Lock()
|
i.Lock()
|
||||||
|
|
Loading…
Reference in New Issue