diff options
author | David Sharp <dsharp@pivotal.io> | 2017-08-02 13:44:17 -0700 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2017-08-02 14:56:56 -0700 |
commit | 95b62fcb6203fae5cf4f5ea093ea58d2eb95e494 (patch) | |
tree | e8bf06a5325068896a870a912669d730833341cd /librabbitmq/amqp.h | |
parent | b252de9c855435aab3162ba7eea50af587501a11 (diff) | |
download | rabbitmq-c-95b62fcb6203fae5cf4f5ea093ea58d2eb95e494.tar.gz |
amqp_consume_message: replace AMQP_STATUS_UNEXPECTED_FRAME in docstring
The documentation for amqp_consume_message refers to AMQP_STATUS_UNEXPECTED_FRAME, but this value doesn't exist. The correct value appears to be AMQP_STATUS_UNEXPECTED_STATE to match the implementation and amqp_consumer.c example.
https://github.com/alanxz/rabbitmq-c/blob/master/examples/amqp_consumer.c#L85
Diffstat (limited to 'librabbitmq/amqp.h')
-rw-r--r-- | librabbitmq/amqp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/librabbitmq/amqp.h b/librabbitmq/amqp.h index e803019..6c4659c 100644 --- a/librabbitmq/amqp.h +++ b/librabbitmq/amqp.h @@ -2230,7 +2230,7 @@ typedef struct amqp_envelope_t_ { * basic.deliver it reads that message, and returns. If any other method is * received before basic.deliver, this function will return an amqp_rpc_reply_t * with ret.reply_type == AMQP_RESPONSE_LIBRARY_EXCEPTION, and - * ret.library_error == AMQP_STATUS_UNEXPECTED_FRAME. The caller should then + * ret.library_error == AMQP_STATUS_UNEXPECTED_STATE. The caller should then * call amqp_simple_wait_frame() to read this frame and take appropriate action. * * This function should be used after starting a consumer with the @@ -2246,7 +2246,7 @@ typedef struct amqp_envelope_t_ { * \param [in] flags pass in 0. Currently unused. * \returns a amqp_rpc_reply_t object. ret.reply_type == AMQP_RESPONSE_NORMAL * on success. If ret.reply_type == AMQP_RESPONSE_LIBRARY_EXCEPTION, and - * ret.library_error == AMQP_STATUS_UNEXPECTED_FRAME, a frame other + * ret.library_error == AMQP_STATUS_UNEXPECTED_STATE, a frame other * than AMQP_BASIC_DELIVER_METHOD was received, the caller should call * amqp_simple_wait_frame() to read this frame and take appropriate * action. |