Skip to content

Commit 15e081d

Browse files
committed
refactor: omit unnecessary reassignment
Signed-off-by: zhoujiaweii <[email protected]>
1 parent ad9d690 commit 15e081d

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)