Skip to content

Ticket System - Retrieve Only One Message and Close Consumer #318

Answered by Gsantomaggio
gabsferrara asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you @gabsferrara but please check: #319

Note: you could still have:

2024/06/19 17:15:28 [warn] - received a credit for an unknown subscriptionId: 0

in your case, I suggest using the following:

	stream.NewConsumerOptions().
			SetConsumerName(consumerName).
			SetInitialCredits(1).
	

to reduce the InitialCredits.

Replies: 6 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

@gabsferrara
Comment options

@gabsferrara
Comment options

Comment options

You must be logged in to vote
1 reply
@gabsferrara
Comment options

Answer selected by gabsferrara
Comment options

You must be logged in to vote
0 replies
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