Closed KilluaaaCHEN closed 2 years ago
hi, chen, i think u can try this:
c, err := rocketmq.NewPushConsumer( consumer.WithGroupName("test-group"), consumer.WithNsResolver(primitive.NewPassthroughResolver([]string{"http://rmq-cn-123456.cn-shanghai.rmq.aliyuncs.com:8080"})), consumer.WithCredentials(primitive.Credentials{ AccessKey: "111", SecretKey: "222", }), )
hi, chen, i think u can try this:
c, err := rocketmq.NewPushConsumer( consumer.WithGroupName("test-group"), consumer.WithNsResolver(primitive.NewPassthroughResolver([]string{"http://rmq-cn-123456.cn-shanghai.rmq.aliyuncs.com:8080"})), consumer.WithCredentials(primitive.Credentials{ AccessKey: "111", SecretKey: "222", }), )
Thanks, now it's working
代码片段
运行报错:
版本信息
现状