Skip to content

Commit

Permalink
Register first, deregister second in sync process (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbetkier committed Oct 3, 2016
1 parent 9fd6b5b commit 90e5739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sync/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ func (s *Sync) syncServices() error {
return fmt.Errorf("Can't get Consul services: %v", err)
}

s.deregisterConsulServicesNotFoundInMarathon(apps, services)
s.registerAppTasksNotFoundInConsul(apps, services)
s.deregisterConsulServicesNotFoundInMarathon(apps, services)

log.Info("Syncing services finished")
return nil
Expand Down

0 comments on commit 90e5739

Please sign in to comment.