Skip to content

Conversation

vearne
Copy link
Contributor

@vearne vearne commented Dec 27, 2023

What is the purpose of the change

fix #1122

Brief changelog

add new kind of NsResolver: dnsResolver to support nameserver in the form of domain name.

like this

p, err := rocketmq.NewProducer(
	producer.WithNsResolver(primitive.NewDNSResolver([]string{"ns1.example.com:9876"})),
	producer.WithRetry(2),
)

Verifying this change

I have add unit test In primitive/nsresolver_test.go.

@rfyiamcool
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add new kind of primitive.NsResolver
2 participants