Skip to content

Commit

Permalink
Fix benchmark indexing
Browse files Browse the repository at this point in the history
Signed-off-by: Marek Siarkowicz <[email protected]>
  • Loading branch information
serathius committed Nov 29, 2024
1 parent 8f91eb1 commit 18f85ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/benchmark/cmd/watch_latency.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func setupWatchChannels(key string) []clientv3.WatchChan {
wchs := make([]clientv3.WatchChan, len(streams)*watchLWatchersPerStream)
for i := 0; i < len(streams); i++ {
for j := 0; j < watchLWatchersPerStream; j++ {
wchs[i*len(streams)+j] = streams[i].Watch(context.TODO(), key, opts...)
wchs[i*watchLWatchersPerStream+j] = streams[i].Watch(context.TODO(), key, opts...)
}
}
return wchs
Expand Down

0 comments on commit 18f85ae

Please sign in to comment.