lib/db, lib/model: Code simplifications (#6484)

NamespacedKV.prefixedKey is still small enough to be inlined.
This commit is contained in:
greatroar
2020-03-31 14:32:24 +02:00
committed by GitHub
parent 123941cf62
commit 2f26a95973
3 changed files with 6 additions and 16 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ func reset(n *NamespacedKV) {
}
defer tr.Release()
it, err := tr.NewPrefixIterator(n.prefix)
it, err := tr.NewPrefixIterator([]byte(n.prefix))
if err != nil {
return
}