You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you see, it consumes the whole Message as a ref. However, internally it uses only an Id field. During the integration of acknowledgment mechanism into Vector I have found that would be much more convenient to have a way just to pass an id instead of the whole message (at least because Message does not support Clone).
Could you please change the corresponding method (would be a breaking change, I guess) or provide an additional method smth like ack_with_message_id to resolve the problem? Thanks!
P.S. Yeah, I know that I can grab acker and emulate the same behavior with it. I think having ack_with_message_id has better UX for the users.
The text was updated successfully, but these errors were encountered:
Hi.
Right now library provides a way to acknowledge a message with the following function: https://docs.rs/pulsar/latest/pulsar/consumer/struct.Consumer.html#method.ack
As you see, it consumes the whole
Message
as a ref. However, internally it uses only an Id field. During the integration of acknowledgment mechanism into Vector I have found that would be much more convenient to have a way just to pass an id instead of the whole message (at least becauseMessage
does not supportClone
).Could you please change the corresponding method (would be a breaking change, I guess) or provide an additional method smth like
ack_with_message_id
to resolve the problem? Thanks!P.S. Yeah, I know that I can grab
acker
and emulate the same behavior with it. I think havingack_with_message_id
has better UX for the users.The text was updated successfully, but these errors were encountered: