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 consumer demo in README is incorrect #912

Closed
Oliverwqcwrw opened this issue Sep 7, 2022 · 0 comments · Fixed by #913
Closed

The consumer demo in README is incorrect #912

Oliverwqcwrw opened this issue Sep 7, 2022 · 0 comments · Fixed by #913
Labels
doc Document, comments and clean code

Comments

@Oliverwqcwrw
Copy link
Member

BUG REPORT

  1. Please describe the issue you observed:

    • What did you do (The steps to reproduce)?
 err := c.Subscribe("test", consumer.MessageSelector{}, func(ctx *consumer.ConsumeMessageContext,
msgs []*primitive.MessageExt) (consumer.ConsumeResult, error) {
rlog.Info("Subscribe Callback", map[string]interface{}{
    "msgs": msgs,
})
return consumer.ConsumeSuccess, nil

})

ctx *consumer.ConsumeMessageContext should be ctx context.Context

- What did you expect to see?

- What did you see instead?
  1. Please tell us about your environment:

    • What is your OS?

    • What is your client version?

    • What is your RocketMQ version?

  2. Other information (e.g. detailed explanation, logs, related issues, suggestions on how to fix, etc):

@ShannonDing ShannonDing added the doc Document, comments and clean code label Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Document, comments and clean code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants