Sfoglia il codice sorgente

Feature #TASK_QT-31635【国网辽宁电力】6.2.1平台支持euspace-发送网络数据开关控制pullAllAppInfo

Tom 6 mesi fa
parent
commit
d042a5b5a2
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      containers/registry.go

+ 3 - 1
containers/registry.go

@@ -176,7 +176,9 @@ func NewRegistry(reg prometheus.Registerer, kernelVersion string, nodeInfo *Node
 	//if err != nil {
 	//	return nil, err
 	//}
-	try.Go(r.PullAllAppInfo, CatchFn)
+	if *flags.SendNetData {
+		try.Go(r.PullAllAppInfo, CatchFn)
+	}
 	//go r.handleEvents(r.events)
 	try.GoParams(r.handleEvents, CatchFn, r.events)