Skip to content

Commit

Permalink
migrate uses of legacy alias folly::io::COMPRESSION_LEVEL_DEFAULT
Browse files Browse the repository at this point in the history
Reviewed By: DenisYaroshevskiy

Differential Revision: D59009827

fbshipit-source-id: 91dd2937d3a755b43a16d8524009c0fdfd7f6b4e
  • Loading branch information
yfeldblum authored and facebook-github-bot committed Jan 23, 2025
1 parent 45aa187 commit 9cc7d2e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,21 +165,21 @@ CompressionAlgorithmSelector::toCodecTypeAndLevel(
case CompressionAlgorithm::ZLIB:
return {
folly::io::CodecType::ZLIB,
folly::io::COMPRESSION_LEVEL_DEFAULT};
folly::compression::COMPRESSION_LEVEL_DEFAULT};
case CompressionAlgorithm::ZSTD:
return {
folly::io::CodecType::ZSTD,
folly::io::COMPRESSION_LEVEL_DEFAULT};
folly::compression::COMPRESSION_LEVEL_DEFAULT};
case CompressionAlgorithm::LZ4:
return {
folly::io::CodecType::LZ4_VARINT_SIZE,
folly::io::COMPRESSION_LEVEL_DEFAULT};
folly::compression::COMPRESSION_LEVEL_DEFAULT};

case CompressionAlgorithm::CUSTOM:
// TODO: use custom compression implementation
return {
folly::io::CodecType::NO_COMPRESSION,
folly::io::COMPRESSION_LEVEL_DEFAULT};
folly::compression::COMPRESSION_LEVEL_DEFAULT};

case CompressionAlgorithm::ZLIB_LESS:
return {
Expand Down Expand Up @@ -216,7 +216,7 @@ CompressionAlgorithmSelector::toCodecTypeAndLevel(
case CompressionAlgorithm::NONE:
return {
folly::io::CodecType::NO_COMPRESSION,
folly::io::COMPRESSION_LEVEL_DEFAULT};
folly::compression::COMPRESSION_LEVEL_DEFAULT};
};
// clang-format on

Expand Down

0 comments on commit 9cc7d2e

Please sign in to comment.