Skip to content

The consumer demo in README is incorrect #912

@Oliverwqcwrw

Description

@Oliverwqcwrw

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):

Metadata

Metadata

Assignees

No one assigned

    Labels

    docDocument, comments and clean code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions