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