[skip ci]Fix golint error in minio_kv (#10702)

Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
This commit is contained in:
zhenshan.cao 2021-10-26 22:42:25 +08:00 committed by GitHub
parent dcac9c71b1
commit d598c78bbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -275,6 +275,7 @@ func (kv *MinIOKV) LoadPartial(key string, start, end int64) ([]byte, error) {
return ioutil.ReadAll(object)
}
// GetSize obtains the data size of the object with @key.
func (kv *MinIOKV) GetSize(key string) (int64, error) {
objectInfo, err := kv.minioClient.StatObject(kv.ctx, kv.bucketName, key, minio.StatObjectOptions{})
if err != nil {