From b5785ef8fefbc03d1e487f64d6e3928d82286d79 Mon Sep 17 00:00:00 2001 From: nyanotech Date: Mon, 8 Apr 2024 20:36:00 -0700 Subject: [PATCH] replace deprecated thing with the new hotness --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index fe73edf..4657bbe 100644 --- a/main.go +++ b/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