Merge pull request #36036 from kolyshkin/plugins
daemon.cleanupMetricsPlugins(): fix Upstream-commit: 991d64eeb3ee97078a03b88185bee177c6551896 Component: engine
This commit is contained in:
@@ -118,7 +118,8 @@ func (d *Daemon) cleanupMetricsPlugins() {
|
||||
var wg sync.WaitGroup
|
||||
wg.Add(len(ls))
|
||||
|
||||
for _, p := range ls {
|
||||
for _, plugin := range ls {
|
||||
p := plugin
|
||||
go func() {
|
||||
defer wg.Done()
|
||||
pluginStopMetricsCollection(p)
|
||||
|
||||
Reference in New Issue
Block a user