[skip ci]Format rocksdbkv (#11852)

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

View File

@ -82,7 +82,7 @@ func (kv *RocksdbKV) GetName() string {
// Load returns the value of specified key
func (kv *RocksdbKV) Load(key string) (string, error) {
if kv.DB == nil {
return "", fmt.Errorf("Rocksdb instance is nil when load %s", key)
return "", fmt.Errorf("rocksdb instance is nil when load %s", key)
}
value, err := kv.DB.Get(kv.ReadOptions, []byte(key))