You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/09/19 03:38:08 UTC
[GitHub] [rocketmq-client-go] KilluaChen commented on issue #920: 使用阿里云RocketMQ时无法使用域名,报错: new Namesrv failed.: IP addr error
KilluaChen commented on issue #920:
URL: https://github.com/apache/rocketmq-client-go/issues/920#issuecomment-1250532926
> 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
--
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.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org