refactor: address PR feedback

pull/14892/head
Edd Robinson 2019-08-30 21:07:32 +01:00
parent 2e5ebbe251
commit 7efb73930b
2 changed files with 2 additions and 3 deletions

View File

@ -432,8 +432,7 @@ func (c *Cache) DeleteBucketRange(ctx context.Context, name string, min, max int
for _, k := range toDelete {
total += uint64(len(k))
// TODO(edd): either use unsafe conversion to []byte or add a removeString
// method.
// TODO(edd): either use unsafe conversion to []byte or add a removeString method.
c.store.remove([]byte(k))
}

View File

@ -342,7 +342,7 @@ func BenchmarkEngine_DeletePrefixRange_Cache(b *testing.B) {
}
})
b.Run("not exists", func(b *testing.B) {
b.Run("not_exists", func(b *testing.B) {
b.ReportAllocs()
for i := 0; i < b.N; i++ {
b.StopTimer()