Merge pull request #22 from CarlQLange/new-with-region
Use NewWithRegion not minio's region resolution
This commit is contained in:
commit
6a23dbae72
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ func newS3Client(cfg *Config) (*s3Client, error) {
|
|||
if u.Port() != "" {
|
||||
endpoint = u.Hostname() + ":" + u.Port()
|
||||
}
|
||||
minioClient, err := minio.New(endpoint, client.cfg.AccessKeyID, client.cfg.SecretAccessKey, ssl)
|
||||
minioClient, err := minio.NewWithRegion(endpoint, client.cfg.AccessKeyID, client.cfg.SecretAccessKey, ssl, client.cfg.Region)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue