From f2e2b9878357e3646dfe9bfa84d9222be331f233 Mon Sep 17 00:00:00 2001 From: Adam Fowler Date: Wed, 10 Apr 2024 08:44:33 +0100 Subject: [PATCH] Remove httpClientProvider from benchmarks --- Benchmark/Sources/soto-benchmark/AWSClientSuite.swift | 3 +-- scripts/generate-region-test.swift | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Benchmark/Sources/soto-benchmark/AWSClientSuite.swift b/Benchmark/Sources/soto-benchmark/AWSClientSuite.swift index ca9796d10..f88cf9fb2 100644 --- a/Benchmark/Sources/soto-benchmark/AWSClientSuite.swift +++ b/Benchmark/Sources/soto-benchmark/AWSClientSuite.swift @@ -62,8 +62,7 @@ let awsClientSuite = BenchmarkSuite(name: "AWSClient", settings: Iterations(1000 // take the amount of time it took to construct the request let client = AWSClient( credentialProvider: .static(accessKeyId: "foo", secretAccessKey: "bar"), - middlewares: [RequestThrowMiddleware()], - httpClientProvider: .createNew + middlewares: [RequestThrowMiddleware()] ) let jsonService = AWSServiceConfig( region: .useast1, partition: .aws, service: "test-service", serviceProtocol: .json(version: "1.1"), apiVersion: "10-10-2010" diff --git a/scripts/generate-region-test.swift b/scripts/generate-region-test.swift index 8cb563a8b..cb3deb476 100755 --- a/scripts/generate-region-test.swift +++ b/scripts/generate-region-test.swift @@ -28,9 +28,7 @@ struct RegionDesc { var regionDescs: [RegionDesc] = [] -let client = AWSClient( - httpClientProvider: .createNew -) +let client = AWSClient() let ssm = SSM(client: client, region: Region.euwest1) let request = SSM.GetParametersByPathRequest( path: REGION_PATH