From 6ef6e43418859cba1eaa3d68fa202a5eb2f5f4f9 Mon Sep 17 00:00:00 2001 From: Sebastian Klatt Date: Fri, 12 Jun 2015 20:21:32 +0200 Subject: [PATCH] consul: Remove unreachable error handling --- command/agent/rpc.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/command/agent/rpc.go b/command/agent/rpc.go index c4fe71f70a..56d9bc7a3d 100644 --- a/command/agent/rpc.go +++ b/command/agent/rpc.go @@ -304,11 +304,6 @@ func (i *AgentRPC) listen() { } client.dec = codec.NewDecoder(client.reader, 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 i.Lock()