aboutsummaryrefslogtreecommitdiffstats
path: root/vm
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2025-02-14 19:01:57 +0100
committerTaras Madan <tarasmadan@google.com>2025-02-17 08:18:57 +0000
commit4121cf9df313ee111c01fde1f255d010c8d941cd (patch)
treedcd0d104c8c35997103297dfb7dc1f0de6b77b8e /vm
parent9f05da3db0234203729d2ad179ab5a2f72bf607f (diff)
all: remove loop variables scoping
Diffstat (limited to 'vm')
-rw-r--r--vm/dispatcher/pool.go1
-rw-r--r--vm/vm_test.go1
2 files changed, 0 insertions, 2 deletions
diff --git a/vm/dispatcher/pool.go b/vm/dispatcher/pool.go
index aa3228cbb..331bfd062 100644
--- a/vm/dispatcher/pool.go
+++ b/vm/dispatcher/pool.go
@@ -101,7 +101,6 @@ func (p *Pool[T]) Loop(ctx context.Context) {
var wg sync.WaitGroup
wg.Add(len(p.instances))
for _, inst := range p.instances {
- inst := inst
go func() {
for ctx.Err() == nil {
p.runInstance(ctx, inst)
diff --git a/vm/vm_test.go b/vm/vm_test.go
index 434446083..34b656799 100644
--- a/vm/vm_test.go
+++ b/vm/vm_test.go
@@ -337,7 +337,6 @@ var tests = []*Test{
func TestMonitorExecution(t *testing.T) {
for _, test := range tests {
- test := test
t.Run(test.Name, func(t *testing.T) {
t.Parallel()
testMonitorExecution(t, test)