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

Update thrift to v0.21.0 #663

Merged
merged 1 commit into from
Sep 24, 2024
Merged

Update thrift to v0.21.0 #663

merged 1 commit into from
Sep 24, 2024

Conversation

fishy
Copy link
Member

@fishy fishy commented Sep 23, 2024

Also rerun thrift compiler v0.21.0 on baseplate.thrift.

Also add thriftbp.ClientPoolConfig.UseZlib, which was not possible before.

@fishy fishy requested a review from a team as a code owner September 23, 2024 17:53
@fishy fishy requested review from kylelemons, konradreiche and mathyourlife-reddit and removed request for a team September 23, 2024 17:53
Copy link
Contributor

@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.

LGTM. Go changes seem fairly limited.

go.mod Show resolved Hide resolved
Also rerun thrift compiler v0.21.0 on baseplate.thrift.

Also add thriftbp.ClientPoolConfig.UseZlib, which was not possible
before.
@@ -228,6 +228,12 @@ type ClientPoolConfig struct {
//
// Optional. If empty, no "thrift-hostname" header will be sent.
ThriftHostnameHeader string `yaml:"thriftHostnameHeader"`

// Uses zlib transform in thrift THeader connections between client and
Copy link
Contributor

Choose a reason for hiding this comment

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

is THeader just for headers, or for the whole connection? UseZlib sounds like this is for the whole connection, but the docs make it sound like it's just for headers...

so maybe

  • rename to UseZlibForHeaders, or
  • update the comment to specify that this is for the whole connection

?

Copy link
Member Author

Choose a reason for hiding this comment

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

THeader is a thrift TProtocol/TTransport (it's just the only TProtocol/TTransport that supports headers, thus the name)

so it's for the whole connection.

@fishy fishy merged commit c7e0658 into reddit:master Sep 24, 2024
2 checks passed
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.

4 participants