Skip to content

Commit

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

Differential Revision: D68536730

fbshipit-source-id: 4408bf3071dc2aff7a83d522b931b58343995f97
  • Loading branch information
yfeldblum authored and facebook-github-bot committed Jan 24, 2025
1 parent c527fd1 commit b56f42c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion quic/logging/FileQLogger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ void FileQLogger::finishStream() {
auto outputRange = folly::MutableByteRange(
compressionBuffer_->writableData(), compressionBuffer_->capacity());
ended = compressionCodec_->compressStream(
inputRange, outputRange, folly::io::StreamCodec::FlushOp::END);
inputRange,
outputRange,
folly::compression::StreamCodec::FlushOp::END);
auto outputLen = compressionBuffer_->capacity() - outputRange.size();
writer_->writeMessage(folly::StringPiece(
(const char*)compressionBuffer_->data(), outputLen));
Expand Down
2 changes: 1 addition & 1 deletion quic/logging/FileQLogger.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class FileQLogger : public BaseQLogger {
void handleEvent(std::unique_ptr<QLogEvent> event);

std::unique_ptr<folly::AsyncFileWriter> writer_;
std::unique_ptr<folly::io::StreamCodec> compressionCodec_;
std::unique_ptr<folly::compression::StreamCodec> compressionCodec_;
std::unique_ptr<folly::IOBuf> compressionBuffer_;

std::string path_;
Expand Down

0 comments on commit b56f42c

Please sign in to comment.