Skip to content
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

[FIXED] Randomize discovered server URLs if allowed #319

Merged
merged 2 commits into from
May 7, 2020

Conversation

kozlovic
Copy link
Member

@kozlovic kozlovic commented May 6, 2020

If randomize is allowed, discovered URLs will be randomly added
to the pool of urls instead of always be appended.

See nats-io/nats.go#565

Signed-off-by: Ivan Kozlovic [email protected]

If randomize is allowed, discovered URLs will be randomly added
to the pool of urls instead of always be appended.

See nats-io/nats.go#565

Signed-off-by: Ivan Kozlovic <[email protected]>
@kozlovic kozlovic requested a review from ColinSullivan1 May 6, 2020 17:53
@kozlovic kozlovic changed the title [FIXED] Randomize discovered server URLs [FIXED] Randomize discovered server URLs if allowed May 6, 2020
@kozlovic
Copy link
Member Author

kozlovic commented May 6, 2020

Need to update based on changes made to the Go client. Namely, need to ensure that we don't shuffle the whole pool but leave the first URL untouched.

Copy link
Member

@ColinSullivan1 ColinSullivan1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kozlovic kozlovic merged commit 705199b into master May 7, 2020
@kozlovic kozlovic deleted the randomize_new_urls branch May 7, 2020 21:41
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.

2 participants