Skip to content

Commit

Permalink
add WithNameServerDomain for producer opt (#438)
Browse files Browse the repository at this point in the history
Co-authored-by: quxiaolong <[email protected]>
  • Loading branch information
quxiaolong1504 and quxiaolong authored Mar 8, 2020
1 parent 2c78dae commit 191cd4c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions producer/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ func WithNameServer(nameServers primitive.NamesrvAddr) Option {
}
}

// WithNameServerDomain set NameServer domain
func WithNameServerDomain(nameServerUrl string) Option {
return func(opts *producerOptions) {
opts.NameServerDomain = nameServerUrl
}
}

// WithNamespace set the namespace of producer
func WithNamespace(namespace string) Option {
return func(opts *producerOptions) {
Expand Down

0 comments on commit 191cd4c

Please sign in to comment.