mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
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:
parent
1f28a3bb80
commit
d4e0f13bb3
@ -82,7 +82,7 @@ func (c FSChecksumInfoV1) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(info)
|
||||
}
|
||||
|
||||
// UnmarshalJSON unmarshals the the given data into the FSChecksumInfoV1 struct
|
||||
// UnmarshalJSON unmarshals the given data into the FSChecksumInfoV1 struct
|
||||
func (c *FSChecksumInfoV1) UnmarshalJSON(data []byte) error {
|
||||
type checksuminfo struct {
|
||||
Algorithm string `json:"algorithm"`
|
||||
|
@ -947,7 +947,7 @@ type httpStreamResponse struct {
|
||||
err error
|
||||
}
|
||||
|
||||
// Write part of the the streaming response.
|
||||
// Write part of the streaming response.
|
||||
// Note that upstream errors are currently not forwarded, but may be in the future.
|
||||
func (h *httpStreamResponse) Write(b []byte) (int, error) {
|
||||
if len(b) == 0 || h.err != nil {
|
||||
|
@ -1577,7 +1577,7 @@ func ExecObjectLayerAPIAnonTest(t *testing.T, obj ObjectLayer, testName, bucketN
|
||||
unknownSignTestStr := "Unknown HTTP signature test"
|
||||
|
||||
// simple function which returns a message which gives the context of the test
|
||||
// and then followed by the the actual error message.
|
||||
// and then followed by the actual error message.
|
||||
failTestStr := func(testType, failMsg string) string {
|
||||
return fmt.Sprintf("MinIO %s: %s fail for \"%s\": \n<Error> %s", instanceType, testType, testName, failMsg)
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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{
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
@ -40,7 +40,7 @@ import (
|
||||
// $ APP_ARGS="server /tmp/test" go test -cover -tags testrunmain -covermode count -coverpkg="./..." -coverprofile=coverage.cov
|
||||
//
|
||||
// 2. Run System-Tests (when using GitBash prefix this line with MSYS_NO_PATHCONV=1)
|
||||
// Note the the SERVER_ENDPOINT must be reachable from inside the docker container (so don't use localhost!)
|
||||
// Note the SERVER_ENDPOINT must be reachable from inside the docker container (so don't use localhost!)
|
||||
// $ podman run -e MINT_MODE=full -e SERVER_ENDPOINT=192.168.47.11:9000 -e ACCESS_KEY=minioadmin -e SECRET_KEY=minioadmin -v /tmp/mint/log:/mint/log minio/mint
|
||||
//
|
||||
// 3. Stop system under test by sending SIGTERM
|
||||
|
Loading…
Reference in New Issue
Block a user