amqp-node / amqplib

AMQP 0-9-1 library and client for Node.JS

Home Page:https://amqp-node.github.io/amqplib/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why channel.ack takes message type as input instead of just delivery tag

shashidhar100 opened this issue · comments

As mentioned in the AMPQ 0 - 9 - 1 here we just need to pass deliveryTag and bit to acknowledge the message but current implementation uses message type, is there any particular reason for this.

Just an API design choice - you can see here the deliveryTag being extracted from the message

So even if I give other fields as undefined it doesn't make any difference right?

Correct

Thank You, for replying fast