Pass battery of linting/vetting

including:

- gofmt -s to simplify some code
- Properly capture range variable (go vet)
- Update doc comments (fix golint errors)
This commit is contained in:
sm
2017-04-30 19:45:06 -07:00
parent f73e2280ec
commit 6b566c2c3a
3 changed files with 50 additions and 44 deletions
+3 -3
View File
@@ -73,12 +73,12 @@ func benchmarkShardedCacheGetManyConcurrent(b *testing.B, exp time.Duration) {
wg := new(sync.WaitGroup)
wg.Add(n)
for _, v := range keys {
go func() {
go func(key string) {
for j := 0; j < each; j++ {
tsc.Get(v)
tsc.Get(key)
}
wg.Done()
}()
}(v)
}
b.StartTimer()
wg.Wait()