From b01b510fdd2037b856dcb51f34fba4dcc875706f Mon Sep 17 00:00:00 2001 From: Steve Kim Date: Tue, 24 Sep 2024 12:41:39 -0700 Subject: [PATCH] channel_args creation simplification --- source/channel_bootstrap.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/channel_bootstrap.c b/source/channel_bootstrap.c index 206749d1e..d3cb07ebf 100644 --- a/source/channel_bootstrap.c +++ b/source/channel_bootstrap.c @@ -1374,12 +1374,10 @@ void s_on_server_connection_result( .setup_user_data = channel_data, .shutdown_user_data = channel_data, .on_shutdown_completed = s_on_server_channel_on_shutdown, + .event_loop = event_loop, + .enable_read_back_pressure = channel_data->server_connection_args->enable_read_back_pressure, }; - // DEBUG WIP this can probably be moved into the channel_args creation block above. - channel_args.event_loop = event_loop; - channel_args.enable_read_back_pressure = channel_data->server_connection_args->enable_read_back_pressure; - if (aws_socket_assign_to_event_loop(new_socket, event_loop)) { aws_mem_release(connection_args->bootstrap->allocator, (void *)channel_data); goto error_cleanup;