From 772857d9c1c0840b0ccd8d46978fc504f3be86b1 Mon Sep 17 00:00:00 2001 From: "edward.zeng" Date: Mon, 29 Nov 2021 17:55:41 +0800 Subject: [PATCH] [skip ci] Refine minio kv comment (#12369) Signed-off-by: Edward Zeng --- internal/kv/minio/minio_kv.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/kv/minio/minio_kv.go b/internal/kv/minio/minio_kv.go index 4598dff28..79d5b07ad 100644 --- a/internal/kv/minio/minio_kv.go +++ b/internal/kv/minio/minio_kv.go @@ -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) -- GitLab