[skip ci]Format rocksdbkv (#12033)

Signed-off-by: fishpenguin <kun.yu@zilliz.com>
This commit is contained in:
yukun 2021-11-17 22:01:31 +08:00 committed by GitHub
parent d482f8aa9f
commit 18b9f7810c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,7 +141,7 @@ func (kv *RocksdbKV) ResetPrefixLength(len int) error {
// MultiLoad load a batch of values by keys // MultiLoad load a batch of values by keys
func (kv *RocksdbKV) MultiLoad(keys []string) ([]string, error) { func (kv *RocksdbKV) MultiLoad(keys []string) ([]string, error) {
if kv.DB == nil { if kv.DB == nil {
return nil, errors.New("Rocksdb instance is nil when do MultiLoad") return nil, errors.New("rocksdb instance is nil when do MultiLoad")
} }
values := make([]string, 0, len(keys)) values := make([]string, 0, len(keys))
for _, key := range keys { for _, key := range keys {