Skip to content

Commit

Permalink
WORKAROUND s3 endpoint api change
Browse files Browse the repository at this point in the history
debian provides older s3 api
  • Loading branch information
neolynx committed Oct 1, 2024
1 parent 8630d68 commit bfebecb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions s3/public.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ var (
func NewPublishedStorageRaw(
bucket, defaultACL, prefix, storageClass, encryptionMethod string,
plusWorkaround, disabledMultiDel, forceVirtualHostedStyle bool,
config *aws.Config, endpoint string,
config *aws.Config, /* endpoint */ _ string,
) (*PublishedStorage, error) {
var acl types.ObjectCannedACL
if defaultACL == "" || defaultACL == "private" {
Expand All @@ -82,10 +82,10 @@ func NewPublishedStorageRaw(
storageClass = ""
}

var baseEndpoint *string
if endpoint != "" {
baseEndpoint = aws.String(endpoint)
}
// var baseEndpoint *string
// if endpoint != "" {
// baseEndpoint = aws.String(endpoint)
// }

result := &PublishedStorage{
s3: s3.NewFromConfig(*config, func(o *s3.Options) {
Expand Down

0 comments on commit bfebecb

Please sign in to comment.