-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Allow to create HTTP Sender with custom Client #33580
Allow to create HTTP Sender with custom Client #33580
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doc edits; the new code looks fine
Co-authored-by: Tyera <[email protected]>
automerge label removed due to a CI failure |
looks like unrelated test fail |
Retry to victory 😅 |
Codecov Report
@@ Coverage Diff @@
## master #33580 +/- ##
=========================================
- Coverage 81.7% 81.7% -0.1%
=========================================
Files 807 807
Lines 218306 218313 +7
=========================================
- Hits 178518 178511 -7
- Misses 39788 39802 +14 |
Thanks @CriesofCarrots! |
Can you please add |
* Allow to create HTTP Sender with custom Client * Update rpc-client/src/http_sender.rs Co-authored-by: Tyera <[email protected]> --------- Co-authored-by: Tyera <[email protected]> (cherry picked from commit a226783)
v1.17 is still accepting new features/changes, but I don't think I can justify the v1.16 backport. We're working to speed up our minor-version release cadence, and part of that is being more rigorous at limiting stable-branch backports to critical bug fixes only. |
…3580) (#33660) Allow to create HTTP Sender with custom Client (#33580) * Allow to create HTTP Sender with custom Client * Update rpc-client/src/http_sender.rs Co-authored-by: Tyera <[email protected]> --------- Co-authored-by: Tyera <[email protected]> (cherry picked from commit a226783) Co-authored-by: Kirill Fomichev <[email protected]>
Problem
In Triton sometimes we use custom headers in RPC Client but it's hard to create
HttpSender
outside of solana crate so we need to use a slightly patched version. WithHttpSender::new_with_client
it would be possible to create a sender with completely controlled createdreqwest::Client
.Summary of Changes
HttpSender::new_with_client
HttpSender::default_headers