Skip to content

Commit 2936406

Browse files
authored
chore: apply modernize for latest commits (#7022)
Signed-off-by: SungJin1212 <[email protected]>
1 parent 73088a9 commit 2936406

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/scheduler/fragment_table/fragment_table_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,20 +116,20 @@ func TestFragmentTable_ConcurrentAccess(t *testing.T) {
116116
wg.Add(numGoroutines * 2)
117117

118118
// start writers
119-
for i := 0; i < numGoroutines; i++ {
119+
for i := range numGoroutines {
120120
go func(id int) {
121121
defer wg.Done()
122-
for j := 0; j < numOperations; j++ {
122+
for j := range numOperations {
123123
ft.AddAddressByID(uint64(id), uint64(j), "addr")
124124
}
125125
}(i)
126126
}
127127

128128
// start readers
129-
for i := 0; i < numGoroutines; i++ {
129+
for i := range numGoroutines {
130130
go func(id int) {
131131
defer wg.Done()
132-
for j := 0; j < numOperations; j++ {
132+
for range numOperations {
133133
}
134134
}(i)
135135
}

0 commit comments

Comments
 (0)