wenfengwang commented on a change in pull request #85: [ISSUE #86] Add
Interceptor for producer and consumer.
URL: https://github.com/apache/rocketmq-client-go/pull/85#discussion_r300817357
##########
File path: examples/consumer/simple/main.go
##########
@@ -27,14 +27,10 @@ import (
)
func main() {
- c, _ := consumer.NewPushConsumer("testGroup", primitive.ConsumerOption{
- NameServerAddr: "127.0.0.1:9876",
- ConsumerModel: primitive.Clustering,
- FromWhere: primitive.ConsumeFromFirstOffset,
- })
- err := c.Subscribe("test", primitive.MessageSelector{}, func(ctx
*consumer.ConsumeMessageContext,
+ c, _ := consumer.NewPushConsumer("testGroup", "127.0.0.1:9876")
+ err := c.Subscribe("TopicTest", primitive.MessageSelector{}, func(ctx
*primitive.ConsumeMessageContext,
msgs []*primitive.MessageExt) (primitive.ConsumeResult, error) {
- fmt.Println(msgs)
+ fmt.Println("subscribe callbacl: %v", msgs)
Review comment:
callbacl -> callback
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services