@ -1563,12 +1563,12 @@ func benchmarkCacheGetManyConcurrent(b *testing.B, exp time.Duration) {
wg := new(sync.WaitGroup)
wg.Add(n)
for _, v := range keys {
go func() {
go func(k string) {
for j := 0; j < each; j++ {
tc.Get(v)
tc.Get(k)
}
wg.Done()
}()
}(v)
b.StartTimer()
wg.Wait()
@ -73,12 +73,12 @@ func benchmarkShardedCacheGetManyConcurrent(b *testing.B, exp time.Duration) {
tsc.Get(v)
tsc.Get(k)