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

thriftbp: Fix a bug caused by bad merge from the previous PR #652

Merged
merged 1 commit into from
May 7, 2024

Conversation

fishy
Copy link
Member

@fishy fishy commented May 7, 2024

Due to a bad merge between the previous 2 PRs, we are not really using the countingDelegateTransport in the client created by client pool, so the bytes are not counting and we always report 0 as the bytes read/written.

Rename the args inside newClient generator to fix the bug.

Due to a bad merge between the previous 2 PRs, we are not really using
the countingDelegateTransport in the client created by client pool, so
the bytes are not counting and we always report 0 as the bytes
read/written.

Rename the args inside newClient generator to fix the bug.
@fishy fishy requested a review from a team as a code owner May 7, 2024 20:29
@fishy fishy requested review from kylelemons, konradreiche and mathyourlife-reddit and removed request for a team May 7, 2024 20:29
Comment on lines 593 to 594
protoFactory.GetProtocol(transport),
protoFactory.GetProtocol(transport),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the alternative fix is to use cdt over transport in these 2 lines, but I think renaming transport to raw and cdt to transport makes the code much clearer.

Copy link

@mathyourlife-reddit mathyourlife-reddit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix and rename sound good to me.

@fishy fishy merged commit 25e0999 into master May 7, 2024
2 checks passed
@fishy fishy deleted the thriftbp-fix-bug branch May 7, 2024 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants