1
mirror of https://github.com/rclone/rclone synced 2024-12-23 14:23:44 +01:00

backend/s3: fix ExpiryWindow value

ExpiryWindow accepts duration but it was set to value 3.
This changes it to 3 * time.Minute since default is 5 min.
This commit is contained in:
Aleksandar Jankovic 2019-10-31 16:42:16 +01:00 committed by Nick Craig-Wood
parent 049ff1f269
commit 4b20afa94a

View File

@ -961,7 +961,7 @@ func s3Connection(opt *Options) (*s3.S3, *session.Session, error) {
Client: ec2metadata.New(session.New(), &aws.Config{
HTTPClient: lowTimeoutClient,
}),
ExpiryWindow: 3,
ExpiryWindow: 3 * time.Minute,
},
}
cred := credentials.NewChainCredentials(providers)