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

Updated signatures for 'servers' and 'discovered_servers' properties #374

Merged
merged 1 commit into from
Oct 13, 2022
Merged

Updated signatures for 'servers' and 'discovered_servers' properties #374

merged 1 commit into from
Oct 13, 2022

Conversation

jonchammer
Copy link

This PR updates the servers and discovered_servers properties in nats.aio.Client to return ParseResult objects rather than simple strings, matching the existing pattern established by the connected_url property.

Motivation:
The existing codebase returns 'stringified' ParseResults, like these:

"ParseResult(scheme='nats', netloc='localhost:4222', path='', params='', query='', fragment='')"

This can make usage a bit difficult for end users, since they'd be expected to either transform the string back into a ParseResult to use it or parse the string to pull out the information they need.

@wallyqs wallyqs merged commit 48059d5 into nats-io:main Oct 13, 2022
@jonchammer jonchammer deleted the server_properties branch October 13, 2022 22:20
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.

None yet

2 participants