You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "vearne (via GitHub)" <gi...@apache.org> on 2023/12/27 02:19:54 UTC
[I] add new kind of primitive.NsResolver [rocketmq-client-go]
vearne opened a new issue, #1122:
URL: https://github.com/apache/rocketmq-client-go/issues/1122
**FEATURE REQUEST**
When our team deploys the nameserver, the nameserver needs to use a domain name to access, so I need a resolver that can resolve DNS.
```
p, err := rocketmq.NewProducer(
producer.WithNsResolver(primitive.NewDNSResolver([]string{"ns1.example.com:9876"})),
producer.WithRetry(2),
)
```
--
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: commits-unsubscribe@rocketmq.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org