-
Notifications
You must be signed in to change notification settings - Fork 743
unbuffered: introduce dangerous_extract_secrets, analogous to buffered API #2345
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
Conversation
The method body only accesses members of ConnectionCore, so it makes more sense to have it as a method of ConnectionCore directly. ConnectionCore is used by both the unbuffered and buffered APIs, so this simplifies exposing it from both without code duplication.
…d API The test is largely copied from the buffered API tests, and doesn't provide full coverage. They are testing the same underlying code, so this seems minor compared to creating further unnecessary duplication.
c4f83d3
to
eacb58c
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.
LGTM, thanks!
(If you'd like a release containing these changes, suggest adding a commit with a version bump -- update both of the |
Benchmark resultsInstruction countsSignificant differencesThere are no significant instruction count differences Other differencesClick to expand
Wall-timeSignificant differencesClick to expand
Other differencesClick to expand
Additional informationCheckout details:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2345 +/- ##
=======================================
Coverage 94.88% 94.88%
=======================================
Files 103 103
Lines 24191 24205 +14
=======================================
+ Hits 22953 22967 +14
Misses 1238 1238 ☔ View full report in Codecov by Sentry. |
I've added release notes, but I probably won't have time to migrate my own codebase to the unbuffered API for a while yet. So assuming this is the conditional ask I parsed it as, I'm personally fine if this gets merged without a bump and rolled into a release later. |
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.
Nice and tidy, thanks!
This moves the actual implementation of dangerous_extract_secrets into ConnectionCore, since that's a) where the goods actually are, and b) shared between the unbuffered and buffered APIs. This is only made
pub(crate)
and outfitted with the appropriate facades for public API, for both the new and olddangerous_extract_secrets
.The test is largely copied from the buffered API tests, and doesn't provide full coverage. They are testing the same underlying code, so this seems minor compared to creating further unnecessary duplication.
Proposed release notes
dangerous_extract_secrets
on UnbufferedClientConnection, UnbufferedServerConnection, and UnbufferedConnectionCommon