From e3fffa75aa85abfe918752cb736a39a586af47c1 Mon Sep 17 00:00:00 2001 From: Diptanu Choudhury Date: Fri, 13 May 2016 10:34:21 -0700 Subject: [PATCH] Removing addition of the client service while reconciling services --- client/client.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/client/client.go b/client/client.go index 5169cc489..8b753573b 100644 --- a/client/client.go +++ b/client/client.go @@ -1216,14 +1216,6 @@ func (c *Client) syncConsul() { } } - // Add the client service - clientService := &structs.Service{ - Name: c.config.ClientServiceName, - PortLabel: "clienthttpaddr", - } - svcIdentifier := fmt.Sprintf("%s-%s", "agent", "client") - services[clientService.ID(svcIdentifier)] = struct{}{} - if err := c.consulService.KeepServices(services); err != nil { c.logger.Printf("[DEBUG] client: error removing services from non-running tasks: %v", err) }