Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some typos in comments #4691

Merged
merged 1 commit into from
Apr 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/object/checksum_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func TestChecksumRead(t *testing.T) {
reader := verifyChecksum(io.NopCloser(bytes.NewReader(content)), actual, contentLength)
n, err := reader.Read(make([]byte, length))
if n != length || (err != nil && err != io.EOF) {
t.Fatalf("verify checksum shuold success")
t.Fatalf("verify checksum should success")
}
}

Expand All @@ -65,7 +65,7 @@ func TestChecksumRead(t *testing.T) {
reader := verifyChecksum(io.NopCloser(bytes.NewReader(content)), actual, contentLength)
n, err := reader.Read(make([]byte, length+100))
if n != length || (err != nil && err != io.EOF) {
t.Fatalf("verify checksum shuold success")
t.Fatalf("verify checksum should success")
}
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/object/cos.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func autoCOSEndpoint(bucketName, accessKey, secretKey, token string) (string, er
}
}

return "", fmt.Errorf("bucket %q doesnot exist", bucketName)
return "", fmt.Errorf("bucket %q doesn't exist", bucketName)
}

func newCOS(endpoint, accessKey, secretKey, token string) (ObjectStorage, error) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/object/object_storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func testStorage(t *testing.T, s ObjectStorage) {
if d, e := get(s, "test", 0, -1, WithStorageClass(&scGet)); e != nil || d != "hello" {
t.Fatalf("expect hello, but got %v, error: %s", d, e)
}
if scGet != sc { // Relax me when testing against a storage that doesnot use specified storage class
if scGet != sc { // Relax me when testing against a storage that doesn't use specified storage class
t.Fatalf("Storage class should be %q, got %q", sc, scGet)
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/sync/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,7 @@ func startProducer(tasks chan<- object.Object, src, dst object.ObjectStorage, pr
continue
}
if c.Key() < config.Start {
logger.Infof("ingore prefix %s", c.Key())
logger.Infof("ignore prefix %s", c.Key())
continue
}
if config.End != "" && c.Key() > config.End {
Expand Down
2 changes: 1 addition & 1 deletion pkg/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func GetVersion() Semver {

func CompareVersions(v1, v2 *Semver) (int, error) {
if v1 == nil || v2 == nil {
return 0, fmt.Errorf("v1 %v and v2 %v cant be nil", v1, v2)
return 0, fmt.Errorf("v1 %v and v2 %v can't be nil", v1, v2)
}
var less bool
if v1.major != v2.major {
Expand Down
Loading