We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fb0dae commit 3b64321Copy full SHA for 3b64321
mcrouter/lib/network/ThriftTransport.cpp
@@ -158,6 +158,14 @@ apache::thrift::RocketClientChannel::Ptr ThriftTransportBase::createChannel() {
158
apache::thrift::RocketClientChannel::newChannel(std::move(socket));
159
channel->setProtocolId(apache::thrift::protocol::T_COMPACT_PROTOCOL);
160
channel->setCloseCallback(this);
161
+ if (connectionOptions_.thriftCompression) {
162
+ apache::thrift::CodecConfig codec;
163
+ codec.zstdConfig_ref() = apache::thrift::ZstdCompressionCodecConfig();
164
+ apache::thrift::CompressionConfig compressionConfig;
165
+ compressionConfig.codecConfig_ref() = std::move(codec);
166
+ channel->setDefaultCompressionConfig(std::move(compressionConfig));
167
+ }
168
+
169
return channel;
170
#else
171
return nullptr;
0 commit comments