mirror of
https://github.com/gomods/athens
synced 2026-02-03 12:10:32 +00:00
committed by
Marwan Sulaiman
parent
df82bbc0f3
commit
be908fe713
@@ -34,7 +34,7 @@ type Storage struct {
|
||||
func New(s3Conf *config.S3Config, timeout time.Duration, options ...func(*aws.Config)) (*Storage, error) {
|
||||
const op errors.Op = "s3.New"
|
||||
|
||||
awsConfig := aws.NewConfig()
|
||||
awsConfig := defaults.Config()
|
||||
awsConfig.Region = aws.String(s3Conf.Region)
|
||||
for _, o := range options {
|
||||
o(awsConfig)
|
||||
|
||||
Reference in New Issue
Block a user