未验证 提交 36966504 编写于 作者: Y yukun 提交者: GitHub

[skip ci]Format rocksdbkv (#11853)

Signed-off-by: Nfishpenguin <kun.yu@zilliz.com>
上级 8593d75f
...@@ -96,7 +96,7 @@ func (kv *RocksdbKV) Load(key string) (string, error) { ...@@ -96,7 +96,7 @@ func (kv *RocksdbKV) Load(key string) (string, error) {
// LoadWithPrefix returns a batch values of keys with a prefix // LoadWithPrefix returns a batch values of keys with a prefix
func (kv *RocksdbKV) LoadWithPrefix(key string) ([]string, []string, error) { func (kv *RocksdbKV) LoadWithPrefix(key string) ([]string, []string, error) {
if key == "" { 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 { if kv.DB == nil {
return nil, nil, fmt.Errorf("Rocksdb instance is nil when load %s", key) return nil, nil, fmt.Errorf("Rocksdb instance is nil when load %s", key)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册