Skip to content

Commit 54591b1

Browse files
author
Krish
committed
remove warnings
1 parent a03541c commit 54591b1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

source/s3_client.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ static bool s_should_resize_connection_pool(
201201
uint32_t current_max,
202202
uint32_t new_max,
203203
uint64_t current_time_ns,
204-
uint32_t previous_max_connections,
205204
uint64_t last_resize_timestamp_ns) {
206205

207206
/* Calculate threshold: 10% or 10 connections, whichever is larger */
@@ -282,7 +281,7 @@ static uint32_t s_get_dynamic_max_active_connections(struct aws_s3_client *clien
282281
aws_high_res_clock_get_ticks(&current_time_ns);
283282

284283
/* If cached value exists and hysteresis check fails, return cached value */
285-
if (cached_max > 0 && !s_should_resize_connection_pool(cached_max, new_max, current_time_ns, cached_max, last_update_ns)) {
284+
if (cached_max > 0 && !s_should_resize_connection_pool(cached_max, new_max, current_time_ns, last_update_ns)) {
286285
return cached_max;
287286
}
288287

@@ -2373,7 +2372,6 @@ void aws_s3_client_update_connections_threaded(struct aws_s3_client *client) {
23732372

23742373
struct aws_s3_request *request = aws_s3_client_dequeue_request_threaded(client);
23752374
struct aws_s3_meta_request *meta_request = request->meta_request;
2376-
const uint32_t max_active_connections = aws_s3_client_get_max_active_connections(client, meta_request);
23772375
/* As the request removed from the queue. Decrement the preparing track */
23782376
--meta_request->client_process_work_threaded_data.num_request_being_prepared;
23792377
if (request->is_noop) {

0 commit comments

Comments
 (0)