From 5877f40f87c77ccf2b278839995a6ee91983080f Mon Sep 17 00:00:00 2001 From: Bret Ambrose Date: Tue, 12 Nov 2024 10:54:51 -0800 Subject: [PATCH] Use proper public event loop group API (#460) Co-authored-by: Bret Ambrose --- source/s3_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/s3_client.c b/source/s3_client.c index c1f2fcf7..87d9cb3f 100644 --- a/source/s3_client.c +++ b/source/s3_client.c @@ -529,7 +529,7 @@ struct aws_s3_client *aws_s3_client_new( /* Set up body streaming ELG */ { uint16_t num_event_loops = - (uint16_t)aws_array_list_length(&client->client_bootstrap->event_loop_group->event_loops); + (uint16_t)aws_event_loop_group_get_loop_count(client->client_bootstrap->event_loop_group); uint16_t num_streaming_threads = num_event_loops; if (num_streaming_threads < 1) {