Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Nov 28, 2023
1 parent 06e5cae commit 8efab04
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions bin/mqtt5_canary/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -411,21 +411,6 @@ static int s_AwsMqtt5CanaryOperationStop(struct AwsMqtt5CanaryTestClient *testCl
return AWS_OP_ERR;
}

OnSubscribeCompletionHandler subscribe_completion = [](int errorcode, std::shared_ptr<SubAckPacket>) {
if (errorcode != 0)
{
++g_statistic.subscribe_failed;
fprintf(
stderr,
"%ju: Subscribe failed with errorcode: %d, %s\n",
std::time(0),
errorcode,
aws_error_str(errorcode));
return;
}
++g_statistic.subscribe_succeed;
};

static int s_AwsMqtt5CanaryOperationSubscribe(struct AwsMqtt5CanaryTestClient *testClient, Allocator *allocator)
{
if (!testClient->isConnected)
Expand Down

0 comments on commit 8efab04

Please sign in to comment.