virt-api: Remove unnecessary goroutine
The outer goroutine is not needed, it would not improve performance.
@@ -280,7 +280,6 @@ func (app *SubresourceAPIApp) DumpClusterProfilerHandler(request *restful.Reques
wg.Add(len(pods))
defer close(errorChan)
- go func() {
for _, pod := range pods {
ip := pod.Status.PodIP
name := pod.Name
@@ -322,7 +321,6 @@ func (app *SubresourceAPIApp) DumpClusterProfilerHandler(request *restful.Reques
}(ip, name)
}
- }()
wg.Wait()
select {
