Skip to content

Commit

Permalink
update introduction.md (#913)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliverwqcwrw authored Sep 21, 2022
1 parent a343f1b commit 0323905
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/Introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ c, err := rocketmq.NewPushConsumer(

- Subscribe a topic(only support one topic now), and define your consuming function
```
err := c.Subscribe("test", consumer.MessageSelector{}, func(ctx *consumer.ConsumeMessageContext,
msgs []*primitive.MessageExt) (consumer.ConsumeResult, error) {
err := c.Subscribe("test", consumer.MessageSelector{}, func(ctx context.Context,
msgs ...*primitive.MessageExt) (consumer.ConsumeResult, error) {
rlog.Info("Subscribe Callback", map[string]interface{}{
"msgs": msgs,
})
Expand Down

0 comments on commit 0323905

Please sign in to comment.