mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-07 00:51:45 +02:00
Use interfaces
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user