refactor: address PR feedback
parent
2e5ebbe251
commit
7efb73930b
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue