From 8354ebbb7f4190e11a38417ed71cbf7e90f05105 Mon Sep 17 00:00:00 2001 From: Karl Gutwin Date: Thu, 9 Jul 2015 13:18:32 -0400 Subject: [PATCH] Updates from review feedback --- dnsserver.go | 2 +- docker.go | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dnsserver.go b/dnsserver.go index 5f9af1a..bd60d45 100644 --- a/dnsserver.go +++ b/dnsserver.go @@ -22,7 +22,7 @@ type Service struct { } func NewService() (s *Service) { - s = &Service{Ttl: -1, Manual: false} + s = &Service{Ttl: -1} return } diff --git a/docker.go b/docker.go index fe341d4..33118e0 100644 --- a/docker.go +++ b/docker.go @@ -117,9 +117,7 @@ func (d *DockerManager) eventCallback(event *dockerclient.Event, ec chan error, switch event.Status { case "die", "stop", "kill": // Errors can be ignored here because there can be no-op events. - if s_err == nil && !s.Manual { - d.list.RemoveService(event.Id) - } + d.list.RemoveService(event.Id) case "start", "restart": service, err := d.getService(event.Id) if err != nil {