未验证 提交 c208363b 编写于 作者: D dragondriver 提交者: GitHub

[skip ci] Fix golint warning of MinIOKV (#10913)

Signed-off-by: Ndragondriver <jiquan.long@zilliz.com>
上级 42ff76d3
......@@ -40,6 +40,7 @@ type MinIOKV struct {
bucketName string
}
// Option option when creates MinIOKV.
type Option struct {
Address string
AccessKeyID string
......@@ -199,8 +200,8 @@ func (kv *MinIOKV) Save(key, value string) error {
return err
}
// Save MultiObject, the path is the key of @kvs. The object value is the value
// of @kvs.
// MultiSave save multiple objects, the path is the key of @kvs.
// The object value is the value of @kvs.
func (kv *MinIOKV) MultiSave(kvs map[string]string) error {
var resultErr error
for key, value := range kvs {
......@@ -214,7 +215,7 @@ func (kv *MinIOKV) MultiSave(kvs map[string]string) error {
return resultErr
}
// LoadWithPrefix remove all objects with the same prefix @prefix from minio .
// RemoveWithPrefix remove all objects with the same prefix @prefix from minio.
func (kv *MinIOKV) RemoveWithPrefix(prefix string) error {
objectsCh := make(chan minio.ObjectInfo)
......@@ -290,6 +291,7 @@ func (kv *MinIOKV) GetSize(key string) (int64, error) {
return objectInfo.Size, nil
}
// Close close the MinIOKV.
func (kv *MinIOKV) Close() {
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册