chore: remove duplicate word in comments (#15607)

Signed-off-by: Abirdcfly <fp544037857@gmail.com>

Signed-off-by: Abirdcfly <fp544037857@gmail.com>
This commit is contained in:
Abirdcfly
2022-08-30 23:26:43 +08:00
committed by GitHub
parent 1f28a3bb80
commit d4e0f13bb3
8 changed files with 8 additions and 8 deletions

View File

@@ -388,7 +388,7 @@ func (lc Lifecycle) ComputeAction(obj ObjectOpts) Action {
}
// ExpectedExpiryTime calculates the expiry, transition or restore date/time based on a object modtime.
// The expected transition or restore time is always a midnight time following the the object
// The expected transition or restore time is always a midnight time following the object
// modification time plus the number of transition/restore days.
//
// e.g. If the object modtime is `Thu May 21 13:42:50 GMT 2020` and the object should

View File

@@ -106,7 +106,7 @@ const (
skipVerify = "skip_verify"
)
// DefaultKVS is the the default K/V config system for
// DefaultKVS is the default K/V config system for
// the STS TLS API.
var DefaultKVS = config.KVS{
config.KV{

View File

@@ -99,7 +99,7 @@ func unsealObjectKey(clientKey []byte, metadata map[string]string, bucket, objec
}
// EncryptSinglePart encrypts an io.Reader which must be the
// the body of a single-part PUT request.
// body of a single-part PUT request.
func EncryptSinglePart(r io.Reader, key ObjectKey) io.Reader {
r, err := sio.EncryptReader(r, sio.Config{MinVersion: sio.Version20, Key: key[:], CipherSuites: fips.DARECiphers()})
if err != nil {

View File

@@ -64,7 +64,7 @@ var recordsHeader = []byte{
const (
// Chosen for compatibility with AWS JAVA SDK
// It has a a buffer size of 128K:
// It has a buffer size of 128K:
// https://github.com/aws/aws-sdk-java/blob/master/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/eventstreaming/MessageDecoder.java#L26
// but we must make sure there is always space to add 256 bytes:
// https://github.com/aws/aws-sdk-java/blob/master/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/SelectObjectContentEventStream.java#L197