소스 검색

chore: clean

Yeuoly 1 년 전
부모
커밋
7c65b471db
1개의 변경된 파일1개의 추가작업 그리고 13개의 파일을 삭제
  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