Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The issue of automatic message retry #859

Closed
wd-h2 opened this issue May 20, 2024 · 1 comment
Closed

The issue of automatic message retry #859

wd-h2 opened this issue May 20, 2024 · 1 comment

Comments

@wd-h2
Copy link

wd-h2 commented May 20, 2024

`err := consumerClient.Subscribe(mounter.topic, consumer.MessageSelector{}, func(ctx context.Context, msgs ...*primitive.MessageExt) (consumer.ConsumeResult, error) {
err := mounter.logic.Execute(msgs)
if err != nil {
c.svcCtx.Log.Sugar().Errorf("cosumer_topic_msg:%s:err:%s", mounter.topic, err.Error())

		return consumer.ConsumeRetryLater, nil
	}

	return consumer.ConsumeSuccess, nil
})
if err != nil {
	return
}`

consumer.ConsumeRetryLater :No automatic retry, is there a solution ?

@Anaethelion
Copy link
Contributor

Hello there,

I think you have the wrong library, nothing in the code above fits this repository.

Closing now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants