-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADDED] Option setter for the URL client connects to #95
Conversation
Also fixed the pub and sub example to use this option setter. They would otherwise only be able to connect to localhost:4222. Resolves #94
@ColinSullivan1 @aricart Please review at your earliest convenience on Monday. |
@EduardFazliev No because we use |
var clusterID string | ||
var clientID string | ||
var async bool | ||
URL := stan.DefaultNatsURL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this necessary with the flags below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, will use var instead.
LGTM. |
@@ -57,10 +55,12 @@ func main() { | |||
var qgroup string | |||
var unsubscribe bool | |||
|
|||
URL := DefaultNatsURL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above... Nitpicky, I know. ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will change it to var. Thanks!
LGTM! |
Also fixed the pub and sub example to use this option setter. They
would otherwise only be able to connect to localhost:4222.
Resolves #94