mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-24 11:29:09 +00:00
Fix calling range variable from goroutine
This commit is contained in:
@@ -80,6 +80,7 @@ func (cm *chaosmonkey) Do() {
|
||||
stopCh := make(chan struct{})
|
||||
|
||||
for _, test := range cm.tests {
|
||||
test := test
|
||||
sem := newSemaphore(stopCh)
|
||||
sems = append(sems, sem)
|
||||
go func() {
|
||||
|
Reference in New Issue
Block a user