Skip to content

Commit

Permalink
Updates from review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl Gutwin committed Jul 9, 2015
1 parent e09abbe commit 8354ebb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dnsserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type Service struct {
}

func NewService() (s *Service) {
s = &Service{Ttl: -1, Manual: false}
s = &Service{Ttl: -1}
return
}

Expand Down
4 changes: 1 addition & 3 deletions docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8354ebb

Please sign in to comment.