Kaynağa Gözat

chore: clean

Yeuoly 1 yıl önce
ebeveyn
işleme
7c65b471db
1 değiştirilmiş dosya ile 1 ekleme ve 13 silme
  1. 1 13
      internal/cluster/state.go

+ 1 - 13
internal/cluster/state.go

@@ -46,19 +46,7 @@ func (c *Cluster) RegisterPlugin(lifetime entities.PluginRuntimeTimeLifeInterfac
 
 // SchedulePlugin schedules a plugin to the cluster
 func (c *Cluster) schedulePlugins() error {
-	c.plugin_lock.Lock()
-	defer c.plugin_lock.Unlock()
-
-	for i, v := range c.plugins {
-		if v.lifetime.Stopped() {
-			delete(c.plugins, i)
-			continue
-		}
-
-		if err := c.doPluginStateUpdate(v); err != nil {
-
-		}
-	}
+	return nil
 }
 
 // doPluginUpdate updates the plugin state and schedule the plugin