Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit 6a23dba

Browse files
authored
Merge pull request #22 from CarlQLange/new-with-region
Use NewWithRegion not minio's region resolution
2 parents fb6584d + 95962c2 commit 6a23dba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/s3/s3-client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func newS3Client(cfg *Config) (*s3Client, error) {
4141
if u.Port() != "" {
4242
endpoint = u.Hostname() + ":" + u.Port()
4343
}
44-
minioClient, err := minio.New(endpoint, client.cfg.AccessKeyID, client.cfg.SecretAccessKey, ssl)
44+
minioClient, err := minio.NewWithRegion(endpoint, client.cfg.AccessKeyID, client.cfg.SecretAccessKey, ssl, client.cfg.Region)
4545
if err != nil {
4646
return nil, err
4747
}

0 commit comments

Comments
 (0)