Skip to content

Commit 748aa0d

Browse files
authored
Merge pull request #20685 from zhoujiaweii/main
refactor: omit unnecessary reassignment
2 parents a86d049 + 15e081d commit 748aa0d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tools/benchmark/cmd/watch_latency.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ func watchLatencyFunc(cmd *cobra.Command, _ []string) {
7575
eventTimes := make([][]time.Time, len(wchs))
7676

7777
for i, wch := range wchs {
78-
wch := wch
79-
i := i
8078
eventTimes[i] = make([]time.Time, watchLPutTotal)
8179
wg.Add(1)
8280
go func() {

0 commit comments

Comments
 (0)