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

Fix CLI not showing incorrect URL on connect + add disconnect() before connect() #549

Merged
merged 5 commits into from
Sep 9, 2024

Conversation

aspect
Copy link
Collaborator

@aspect aspect commented Sep 9, 2024

This PR fixes incorrect URL displayed when using CLI and connecting to the public node infrastructure.

CLI does not use the resolver as a typical wRPC client does: if the connection terminates, CLI informs the user and stays disconnected requiring a manual connect. (whereas SDK-based use of resolver would reconnect based on supplied reconnect options).

As such, CLI uses the url setting in wRPC client connect() options. This setting was not correctly updated in RpcClt interface that provides external access to the connection descriptor (URL).


In addition, connect() now calls disconnect() so that multiple connect() requests (from SDKs or CLI) would disconnect the client if connected (instead of posting an error)

@michaelsutton michaelsutton merged commit 5b9c3cf into kaspanet:dev Sep 9, 2024
6 checks passed
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