Skip to content

Commit

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

Differential Revision: D68536168

fbshipit-source-id: c696796a351a6a888c4b8b14974b55a1c50d9e06
  • Loading branch information
yfeldblum authored and facebook-github-bot committed Jan 24, 2025
1 parent 1cc191f commit 5462d5a
Show file tree
Hide file tree
Showing 2 changed files with 3 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::io::StreamCodec& ZstdStreamCompressor::getCodec() {
if (!codec_) {
codec_ = folly::io::getStreamCodec(folly::io::CodecType::ZSTD,
compressionLevel_);
codec_ = folly::compression::getStreamCodec(folly::io::CodecType::ZSTD,
compressionLevel_);
}
return *codec_;
}
Expand Down
2 changes: 1 addition & 1 deletion proxygen/lib/utils/test/ZstdTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void compressThenDecompress(unique_ptr<IOBuf> buf, bool reuseBuf) {

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

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

Expand Down

0 comments on commit 5462d5a

Please sign in to comment.