mirror of
https://github.com/nyanotech/object-holder.git
synced 2025-12-16 11:30:24 -08:00
replace deprecated thing with the new hotness
This commit is contained in:
parent
2c5911fd23
commit
b5785ef8fe
4
main.go
4
main.go
@ -33,8 +33,8 @@ func main() {
|
|||||||
// just a placeholder because it needs to be defined
|
// just a placeholder because it needs to be defined
|
||||||
// should be using the one from the endpoint regardless
|
// should be using the one from the endpoint regardless
|
||||||
config.WithRegion("us-east-1"),
|
config.WithRegion("us-east-1"),
|
||||||
config.WithEndpointResolver(aws.EndpointResolverFunc(
|
config.WithEndpointResolverWithOptions(aws.EndpointResolverWithOptionsFunc(
|
||||||
func(service, region string) (aws.Endpoint, error) {
|
func(service, region string, options ...interface{}) (aws.Endpoint, error) {
|
||||||
return aws.Endpoint{
|
return aws.Endpoint{
|
||||||
URL: *endpoint,
|
URL: *endpoint,
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user