未验证 提交 772857d9 编写于 作者: E edward.zeng 提交者: GitHub

[skip ci] Refine minio kv comment (#12369)

Signed-off-by: NEdward Zeng <jie.zeng@zilliz.com>
上级 b86b7676
......@@ -146,7 +146,7 @@ func (kv *MinIOKV) FGetObject(key, localPath string) error {
return kv.minioClient.FGetObject(kv.ctx, kv.bucketName, key, localPath+key, minio.GetObjectOptions{})
}
// FGetObjects download file from minio to local storage system.
// FGetObjects downloads files from minio to local storage system.
// For parallell downloads file, n goroutines will be started to download n keys.
func (kv *MinIOKV) FGetObjects(keys []string, localPath string) error {
var wg sync.WaitGroup
......@@ -199,7 +199,7 @@ func (kv *MinIOKV) Save(key, value string) error {
return err
}
// MultiSave save multiple objects, the path is the key of @kvs.
// MultiSave saves 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
......@@ -214,7 +214,7 @@ func (kv *MinIOKV) MultiSave(kvs map[string]string) error {
return resultErr
}
// RemoveWithPrefix remove all objects with the same prefix @prefix from minio.
// RemoveWithPrefix removes all objects with the same prefix @prefix from minio.
func (kv *MinIOKV) RemoveWithPrefix(prefix string) error {
objectsCh := make(chan minio.ObjectInfo)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册