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

Upgrade the usage of the client to make it more convenient for users. #78

Open
gpBlockchain opened this issue May 30, 2023 · 0 comments

Comments

@gpBlockchain
Copy link

Currently, the Rust SDK hardcodes the client as reqwest::blocking::Client::new().

$struct_name { url, id: 0.into(), client: reqwest::blocking::Client::new(), }

However, sometimes users may need to customize the client, for example:

https://github.com/synapseweb3/forcerelay/blob/07c3463d2200423740366f5f9b0440bdbc17618a/crates/relayer/src/chain/ckb/rpc_client.rs#L72-L81

@gpBlockchain gpBlockchain changed the title supprot user-defined client Upgrade the usage of the client to make it more convenient for users. May 30, 2023
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

No branches or pull requests

1 participant