-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Deprecate ThinClient
and remove ThinClient
from bench-tps
#35365
Deprecate ThinClient
and remove ThinClient
from bench-tps
#35365
Conversation
ed2c800
to
9eb34f2
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #35365 +/- ##
========================================
Coverage 81.7% 81.7%
========================================
Files 834 834
Lines 224299 224844 +545
========================================
+ Hits 183361 183906 +545
Misses 40938 40938 |
Is this WIP or ready for review? |
oh yes sorry ready for review! forgot to remove the |
Oh also: in future, when you're ready for review, it would be helpful if you could clean up the commits so they are concise and distinct. It's nice to review by commit, but easy to get bogged down when there are changes that are temporary, for debug only, etc. |
ok will fix this! thank you for the tip |
aab78b7
to
0e93c54
Compare
add back in command line args for thinclient. add thin-client deprecation README refactor TpuClient connection
0e93c54
to
3ce13e3
Compare
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.
r+ version nits
Looks great, thanks for the polish!
Much better commits, although if you find yourself listing multiple things in one commit (as in your 2nd one), those changes should usually be separated. No need to churn this one any further, though :)
thin-client/src/thin_client.rs
Outdated
@@ -111,6 +111,7 @@ impl ClientOptimizer { | |||
} | |||
|
|||
/// An object for querying and sending transactions to the network. | |||
#[deprecated(since = "2.0.0", note = "Use [RpcClient] or [TpuClient] instead.")] |
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.
#[deprecated(since = "2.0.0", note = "Use [RpcClient] or [TpuClient] instead.")] | |
#[deprecated(since = "1.19.0", note = "Use [RpcClient] or [TpuClient] instead.")] |
Since this is the repo's current version, let's go with this for now. I'll mention it to releng, but hopefully we can all remember to update these to v2 when that version bump lands.
thin-client/README.md
Outdated
@@ -0,0 +1,4 @@ | |||
# thin-client | |||
This crate for `thin-client` is deprecated as of v2.0.0. It will receive no bugfixes or updates. |
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.
This crate for `thin-client` is deprecated as of v2.0.0. It will receive no bugfixes or updates. | |
This crate for `thin-client` is deprecated as of v1.19.0. It will receive no bugfixes or updates. |
For now...
2nd PR on the way to remove
ThinClient
completely.See first PR: #35335
Problem
It is time to deprecate
ThinClient
as it is rarely used and only sends to one leader.Summary of Changes
ThinClient
ThinClient
frombench-tps
Note: I left in
BenchTpsClient
implementation forThinClient
sincedos/
requiresThinClient
as of now. Next PR will remove thedos/
ThinClient
dependency.