Use interfaces

This commit is contained in:
erthalion
2018-06-13 14:43:31 +02:00
parent 2081fc47f1
commit 627bb51a0c
4 changed files with 137 additions and 112 deletions
-6
View File
@@ -264,12 +264,6 @@ func (c *Controller) processEvent(event spec.ClusterEvent) {
}
c.curWorkerCluster.Store(event.WorkerID, cl)
actions := cl.SyncActions(event.NewSpec)
for i, processor := range c.changeProcessors {
processor(changes)
}
if err := cl.Sync(event.NewSpec); err != nil {
cl.Error = fmt.Errorf("could not sync cluster: %v", err)
lg.Error(cl.Error)