Skip to content

Commit

Permalink
migrate uses of legacy alias folly::io::CodecType in proxygen/
Browse files Browse the repository at this point in the history
Reviewed By: hanidamlaj

Differential Revision: D69791774

fbshipit-source-id: eb2da7d8a016b208b7795a47f5c84e8355a2461e
  • Loading branch information
yfeldblum authored and facebook-github-bot committed Feb 19, 2025
1 parent a80dc2e commit 1ef62a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions proxygen/lib/utils/ZstdStreamCompressor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ ZstdStreamCompressor::ZstdStreamCompressor(int compressionLevel,

folly::compression::StreamCodec& ZstdStreamCompressor::getCodec() {
if (!codec_) {
codec_ = folly::compression::getStreamCodec(folly::io::CodecType::ZSTD,
compressionLevel_);
codec_ = folly::compression::getStreamCodec(
folly::compression::CodecType::ZSTD, compressionLevel_);
}
return *codec_;
}
Expand Down
3 changes: 2 additions & 1 deletion proxygen/lib/utils/test/ZstdTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ void compressThenDecompress(unique_ptr<IOBuf> buf, bool reuseBuf) {

void compressThenDecompressPieces(
std::vector<std::unique_ptr<folly::IOBuf>> input_pieces, bool reuseBuf) {
auto codec = folly::compression::getStreamCodec(folly::io::CodecType::ZSTD);
auto codec =
folly::compression::getStreamCodec(folly::compression::CodecType::ZSTD);

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

Expand Down

0 comments on commit 1ef62a8

Please sign in to comment.