Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMPROVED] Server pool is updated based on server notifications
The server pool was only growing when new servers were discovered. Now, the client library updates its server pool based on server's INFO protocols (true for server 1.0.6+). The DiscoveredServersCB is still invoked only when new servers are added (as in never seen as opposed to added back after leaving the cluster). The code should work ok with older servers but will take advantage of changes in the server (nats-io/nats-server#626)
- Loading branch information
Showing
5 changed files
with
314 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.