[skip ci]Format rocksdbkv (#11853)

Signed-off-by: fishpenguin <kun.yu@zilliz.com>
This commit is contained in:
yukun 2021-11-16 09:21:48 +08:00 committed by GitHub
parent 8593d75fd1
commit 36966504b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,7 @@ func (kv *RocksdbKV) Load(key string) (string, error) {
// LoadWithPrefix returns a batch values of keys with a prefix
func (kv *RocksdbKV) LoadWithPrefix(key string) ([]string, []string, error) {
if key == "" {
return nil, nil, errors.New("Key is nil in LoadWithPrefix")
return nil, nil, errors.New("key is nil in LoadWithPrefix")
}
if kv.DB == nil {
return nil, nil, fmt.Errorf("Rocksdb instance is nil when load %s", key)