Skip to content

Uniqueness of messages consumed by pull consumer in new API #592

Closed Answered by aricart
whocaresk asked this question in Q&A
Discussion options

You must be logged in to vote

@whocaresk sorry this fell out of my radar, didn't see the notification.
When I copied your code, I saw the same issue - and then digging, realized that the problem is that your ack wait option:
ack_wait: 1000 * 60 * 2 is effectively 120,000ns - the type for that setting is specified in nanos, so you need to wrap it with the provided nanos() function:
ack_wait: nanos(1000 * 60 * 2)

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@whocaresk
Comment options

@whocaresk
Comment options

@whocaresk
Comment options

Comment options

You must be logged in to vote
2 replies
@whocaresk
Comment options

@aricart
Comment options

Answer selected by aricart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants