Skip to content

Commit b2d99ce

Browse files
yfeldblumfacebook-github-bot
authored andcommitted
migrate uses of legacy alias folly::io::COMPRESSION_LEVEL_DEFAULT
Reviewed By: DenisYaroshevskiy Differential Revision: D59009827 fbshipit-source-id: 91dd2937d3a755b43a16d8524009c0fdfd7f6b4e
1 parent a8f3822 commit b2d99ce

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

third-party/proxygen/src/proxygen/lib/utils/test/ZstdTests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void verifyPieces(std::unique_ptr<IOBuf> original,
7777
std::unique_ptr<folly::IOBuf> compress(
7878
const std::unique_ptr<folly::IOBuf>& in) {
7979
auto codec = std::make_unique<ZstdStreamCompressor>(
80-
folly::io::COMPRESSION_LEVEL_DEFAULT);
80+
folly::compression::COMPRESSION_LEVEL_DEFAULT);
8181
auto out = codec->compress(in.get());
8282
return out;
8383
}
@@ -128,7 +128,7 @@ void compressDecompressPiecesProxygenCodec(
128128
bool independent,
129129
bool reuseBuf) {
130130
auto codec = std::make_unique<ZstdStreamCompressor>(
131-
folly::io::COMPRESSION_LEVEL_DEFAULT, independent);
131+
folly::compression::COMPRESSION_LEVEL_DEFAULT, independent);
132132

133133
std::vector<std::unique_ptr<folly::IOBuf>> compressed_pieces;
134134

third-party/thrift/src/thrift/lib/cpp2/transport/rocket/compression/CompressionAlgorithmSelector.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,21 +165,21 @@ CompressionAlgorithmSelector::toCodecTypeAndLevel(
165165
case CompressionAlgorithm::ZLIB:
166166
return {
167167
folly::io::CodecType::ZLIB,
168-
folly::io::COMPRESSION_LEVEL_DEFAULT};
168+
folly::compression::COMPRESSION_LEVEL_DEFAULT};
169169
case CompressionAlgorithm::ZSTD:
170170
return {
171171
folly::io::CodecType::ZSTD,
172-
folly::io::COMPRESSION_LEVEL_DEFAULT};
172+
folly::compression::COMPRESSION_LEVEL_DEFAULT};
173173
case CompressionAlgorithm::LZ4:
174174
return {
175175
folly::io::CodecType::LZ4_VARINT_SIZE,
176-
folly::io::COMPRESSION_LEVEL_DEFAULT};
176+
folly::compression::COMPRESSION_LEVEL_DEFAULT};
177177

178178
case CompressionAlgorithm::CUSTOM:
179179
// TODO: use custom compression implementation
180180
return {
181181
folly::io::CodecType::NO_COMPRESSION,
182-
folly::io::COMPRESSION_LEVEL_DEFAULT};
182+
folly::compression::COMPRESSION_LEVEL_DEFAULT};
183183

184184
case CompressionAlgorithm::ZLIB_LESS:
185185
return {
@@ -216,7 +216,7 @@ CompressionAlgorithmSelector::toCodecTypeAndLevel(
216216
case CompressionAlgorithm::NONE:
217217
return {
218218
folly::io::CodecType::NO_COMPRESSION,
219-
folly::io::COMPRESSION_LEVEL_DEFAULT};
219+
folly::compression::COMPRESSION_LEVEL_DEFAULT};
220220
};
221221
// clang-format on
222222

0 commit comments

Comments
 (0)