Skip to content

Commit

Permalink
Removing some unnecessary debug code.
Browse files Browse the repository at this point in the history
  • Loading branch information
manchicken committed Oct 5, 2024
1 parent e73deb4 commit 2a145a6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions examples/amqp_confirm_select.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ void wait_for_acks(amqp_connection_state_t conn) {
fprintf(stderr, "REJECT\n");
break;
default:
fprintf(stderr, "I have no idea which method «%u» is.\n",
result.method);
fprintf(stderr, "Unexpected method «%s» is.\n",
amqp_method_name(result.method));
};
}
}
Expand All @@ -147,10 +147,6 @@ int main(int argc, char const *const *argv) {
amqp_socket_t *socket = NULL;
amqp_connection_state_t conn;

fprintf(stderr, "AMQP_BASIC_ACK_METHOD: %x\n", AMQP_BASIC_ACK_METHOD);
fprintf(stderr, "AMQP_BASIC_NACK_METHOD: %x\n", AMQP_BASIC_NACK_METHOD);
fprintf(stderr, "AMQP_BASIC_REJECT_METHOD: %x\n", AMQP_BASIC_REJECT_METHOD);

if (argc < 5) {
fprintf(stderr,
"Usage: amqp_producer host port rate_limit message_count\n");
Expand Down

0 comments on commit 2a145a6

Please sign in to comment.