mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-08 05:50:47 +00:00
Remove deadline timeout. #255
This commit is contained in:
+5
-1
@@ -10,6 +10,7 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
// PublishedStorage abstract file system with published files (actually hosted on S3)
|
||||
@@ -50,8 +51,11 @@ func NewPublishedStorageRaw(auth aws.Auth, region aws.Region, bucket, defaultACL
|
||||
disableMultiDel: disabledMultiDel,
|
||||
}
|
||||
|
||||
rt := &(*aws.RetryingClient.Transport.(*aws.ResilientTransport))
|
||||
rt.Deadline = func() time.Time { return time.Time{} }
|
||||
|
||||
result.s3.HTTPClient = func() *http.Client {
|
||||
return aws.RetryingClient
|
||||
return aws.NewClient(rt)
|
||||
}
|
||||
result.bucket = result.s3.Bucket(bucket)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user