Closed voidash closed 1 month ago
Attention: Patch coverage is 0%
with 4 lines
in your changes missing coverage. Please review.
Please upload report for BASE (
releases/0.1.0@ecc417e
). Learn more about missing BASE report.
Files with missing lines | Patch % | Lines |
---|---|---|
bin/strata-client/src/main.rs | 0.00% | 2 Missing :warning: |
bin/strata-client/src/rpc_client.rs | 0.00% | 2 Missing :warning: |
@@ Coverage Diff @@
## releases/0.1.0 #391 +/- ##
=================================================
Coverage ? 57.32%
=================================================
Files ? 255
Lines ? 26957
Branches ? 0
=================================================
Hits ? 15454
Misses ? 11503
Partials ? 0
Files with missing lines | Coverage Δ | |
---|---|---|
bin/strata-client/src/main.rs | 0.00% <0.00%> (ø) |
|
bin/strata-client/src/rpc_client.rs | 0.00% <0.00%> (ø) |
Are we planning to have WS again in the future?
This adds some overhead since we'd have to reestablish the connection on every request. A better solution would be to use a connection pool that checks if the connection is still healthy when it goes to hand it out each time. I've used the deadpool crate before, it's fairly easy to work with. Could abstract out the calls we need to make behind a trait.
But ehhh maybe this is fine for now.
This adds some overhead since we'd have to reestablish the connection on every request. A better solution would be to use a connection pool that checks if the connection is still healthy when it goes to hand it out each time. I've used the deadpool crate before, it's fairly easy to work with. Could abstract out the calls we need to make behind a trait.
Approving because this is only merging into a release branch.
Oh man! Where's Waldo moment. Could have included something about that in the PR description. That was hard to notice.
rebased
Description
Full node bug where if sequencer is down, full node also has to go down is because of ws client needing restart after connection drop. Simple Fix to use http client instead of ws client
Type of Change
Checklist
Related Issues