Use NewWithRegion not minio's region resolution
This commit is contained in:
parent
fb6584d7e4
commit
95962c2412
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ func newS3Client(cfg *Config) (*s3Client, error) {
|
||||||
if u.Port() != "" {
|
if u.Port() != "" {
|
||||||
endpoint = u.Hostname() + ":" + 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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue