Browse Source

chore: fix some comments (#20294)

Signed-off-by: shandongzhejiang <shandongzhejiang@icloud.com>
pull/20304/head
shandongzhejiang 11 months ago
committed by GitHub
parent
commit
a8ff12bc72
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      cmd/bucket-lifecycle.go
  2. 2
      cmd/encryption-v1.go
  3. 2
      cmd/erasure-multipart.go

2
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,

2
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

2
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()

Loading…
Cancel
Save