mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-16 12:08:04 +00:00
Use S3 retrying transport. #255
This commit is contained in:
+7
-1
@@ -6,6 +6,7 @@ import (
|
|||||||
"github.com/mitchellh/goamz/s3"
|
"github.com/mitchellh/goamz/s3"
|
||||||
"github.com/smira/aptly/aptly"
|
"github.com/smira/aptly/aptly"
|
||||||
"github.com/smira/aptly/files"
|
"github.com/smira/aptly/files"
|
||||||
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
@@ -46,7 +47,12 @@ func NewPublishedStorageRaw(auth aws.Auth, region aws.Region, bucket, defaultACL
|
|||||||
storageClass: storageClass,
|
storageClass: storageClass,
|
||||||
encryptionMethod: encryptionMethod,
|
encryptionMethod: encryptionMethod,
|
||||||
plusWorkaround: plusWorkaround,
|
plusWorkaround: plusWorkaround,
|
||||||
disableMultiDel: disabledMultiDel}
|
disableMultiDel: disabledMultiDel,
|
||||||
|
}
|
||||||
|
|
||||||
|
result.s3.HTTPClient = func() *http.Client {
|
||||||
|
return aws.RetryingClient
|
||||||
|
}
|
||||||
result.bucket = result.s3.Bucket(bucket)
|
result.bucket = result.s3.Bucket(bucket)
|
||||||
|
|
||||||
return result, nil
|
return result, nil
|
||||||
|
|||||||
Reference in New Issue
Block a user