Skip to content

Commit

Permalink
Update websocket transform complete fn name (#95)
Browse files Browse the repository at this point in the history
* update websocket transform complete fn name

* clang-format
  • Loading branch information
xiazhvera authored Aug 4, 2023
1 parent be5f7a3 commit fb6cd3e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions source/secure_tunneling.c
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,10 @@ struct aws_secure_tunnel_websocket_transform_complete_task {
struct aws_http_message *handshake;
};

void s_websocket_transform_complete_task_fn(struct aws_task *task, void *arg, enum aws_task_status status) {
void s_secure_tunneling_websocket_transform_complete_task_fn(
struct aws_task *task,
void *arg,
enum aws_task_status status) {
(void)task;

struct aws_secure_tunnel_websocket_transform_complete_task *websocket_transform_complete_task = arg;
Expand Down Expand Up @@ -1275,7 +1278,10 @@ static int s_websocket_connect(struct aws_secure_tunnel *secure_tunnel) {
aws_mem_calloc(secure_tunnel->allocator, 1, sizeof(struct aws_secure_tunnel_websocket_transform_complete_task));

aws_task_init(
&task->task, s_websocket_transform_complete_task_fn, (void *)task, "WebsocketHandshakeTransformComplete");
&task->task,
s_secure_tunneling_websocket_transform_complete_task_fn,
(void *)task,
"WebsocketHandshakeTransformComplete");
task->allocator = secure_tunnel->allocator;
task->secure_tunnel = aws_secure_tunnel_acquire(secure_tunnel);
task->error_code = AWS_OP_SUCCESS;
Expand Down

0 comments on commit fb6cd3e

Please sign in to comment.