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

client: derive cluster ws url like web3.js #1362

Merged
merged 1 commit into from
Mar 11, 2022

Conversation

cherryman
Copy link
Contributor

This fixes two issues with Cluster's FromStr implementation, namely:

  • url being lowercased
  • websocket port defaulting to 8900

The implementation has been changed to match that of the official
web3.js library.

See https://github.com/solana-labs/solana/blob/aea8f0df1610248d29d8ca3bc0d60e9fabc99e31/web3.js/src/util/url.ts.

@paul-schaaf
Copy link
Contributor

lgtm, pls add an entry to the changelog fixes

This fixes two issues with `Cluster`'s `FromStr` implementation, namely:

  * url being lowercased
  * websocket port defaulting to 8900

The implementation has been changed to match that of the official
`web3.js` library.

See https://github.com/solana-labs/solana/blob/aea8f0df1610248d29d8ca3bc0d60e9fabc99e31/web3.js/src/util/url.ts.
@cherryman
Copy link
Contributor Author

@paul-schaaf Added!

@paul-schaaf paul-schaaf merged commit b5ea2a4 into coral-xyz:master Mar 11, 2022
@paul-schaaf
Copy link
Contributor

thank you!

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