Skip to content

Commit

Permalink
[UPDATED] Doc of NatsURL [ci skip]
Browse files Browse the repository at this point in the history
Specify that one can pass a comma separated list of urls.

Resolves #223

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
  • Loading branch information
kozlovic committed Jan 23, 2019
1 parent a0e3aee commit 9fdd1dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stan.go
Expand Up @@ -132,6 +132,8 @@ var DefaultOptions = Options{
type Option func(*Options) error

// NatsURL is an Option to set the URL the client should connect to.
// The url can contain username/password semantics. e.g. nats://derek:pass@localhost:4222
// Comma separated arrays are also supported, e.g. urlA, urlB.
func NatsURL(u string) Option {
return func(o *Options) error {
o.NatsURL = u
Expand Down

0 comments on commit 9fdd1dc

Please sign in to comment.