Skip to content

Commit

Permalink
Remove config.WithRegion()
Browse files Browse the repository at this point in the history
  • Loading branch information
takara9 committed May 30, 2024
1 parent 3c86d93 commit 974a8b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/bucket/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ type s3Bucket struct {

// NewS3Bucket creates a Bucket that manage object in S3.
func NewS3Bucket(name string, optFns ...func(*s3.Options)) (Bucket, error) {
cfg, err := config.LoadDefaultConfig(context.Background(), config.WithRegion("us-west-2"))
cfg, err := config.LoadDefaultConfig(context.Background())
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/bucket/s3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ var _ = Describe("S3Bucket", func() {
AccessKeyID: "minioadmin",
SecretAccessKey: "minioadmin",
Source: "minio default credentials",
}}), config.WithRegion("us-west-2"))
}}), config.WithRegion("us-west-1"))
Expect(err).NotTo(HaveOccurred())
client := s3.NewFromConfig(cfg,
WithEndpointURL("http://localhost:9000"),
Expand Down

0 comments on commit 974a8b4

Please sign in to comment.