From a8ff12bc7280cdff3f10fb7be989bd9c3cbac73f Mon Sep 17 00:00:00 2001 From: shandongzhejiang Date: Thu, 22 Aug 2024 04:14:24 +0800 Subject: [PATCH] chore: fix some comments (#20294) Signed-off-by: shandongzhejiang --- cmd/bucket-lifecycle.go | 2 +- cmd/encryption-v1.go | 2 +- cmd/erasure-multipart.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/bucket-lifecycle.go b/cmd/bucket-lifecycle.go index ee1f61817..29c88c529 100644 --- a/cmd/bucket-lifecycle.go +++ b/cmd/bucket-lifecycle.go @@ -1003,7 +1003,7 @@ func ongoingRestoreObj() restoreObjStatus { } } -// completeRestoreObj constructs restoreObjStatus for a completed restore-object with given expiry. +// completedRestoreObj constructs restoreObjStatus for a completed restore-object with given expiry. func completedRestoreObj(expiry time.Time) restoreObjStatus { return restoreObjStatus{ ongoing: false, diff --git a/cmd/encryption-v1.go b/cmd/encryption-v1.go index d893e260d..da9e97bc9 100644 --- a/cmd/encryption-v1.go +++ b/cmd/encryption-v1.go @@ -1104,7 +1104,7 @@ func (o *ObjectInfo) metadataDecrypter(h http.Header) objectMetaDecryptFn { } } -// decryptChecksums will attempt to decode checksums and return it/them if set. +// decryptPartsChecksums will attempt to decode checksums and return it/them if set. // if part > 0, and we have the checksum for the part that will be returned. func (o *ObjectInfo) decryptPartsChecksums(h http.Header) { data := o.Checksum diff --git a/cmd/erasure-multipart.go b/cmd/erasure-multipart.go index 26f9fea42..7389f2137 100644 --- a/cmd/erasure-multipart.go +++ b/cmd/erasure-multipart.go @@ -110,7 +110,7 @@ func (er erasureObjects) checkUploadIDExists(ctx context.Context, bucket, object return fi, partsMetadata, err } -// cleanMultipartPath removes all extraneous files and parts from the multipart folder, this is used per CompleteMultipart. +// cleanupMultipartPath removes all extraneous files and parts from the multipart folder, this is used per CompleteMultipart. // do not use this function outside of completeMultipartUpload() func (er erasureObjects) cleanupMultipartPath(ctx context.Context, paths ...string) { storageDisks := er.getDisks()