1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-11-30 03:41:25 +03:00

Introduce a "BufHelpers" typealias

Summary: This introduces a more generic typealias so that we can, for instance, write `BufHelpers::createCombined` instead of `folly::IOBuf::createCombined`.

Reviewed By: jbeshay

Differential Revision: D73127508

fbshipit-source-id: d585790904efc8e9f92d79cbf766bafe0e84a69f
This commit is contained in:
Aman Sharma
2025-04-17 11:57:01 -07:00
committed by Facebook GitHub Bot
parent 44561513a5
commit 2f33a3681a
34 changed files with 82 additions and 82 deletions

View File

@@ -47,7 +47,7 @@ void FileQLogger::setupStream() {
if (compress_) {
compressionCodec_ =
folly::compression::getStreamCodec(folly::compression::CodecType::GZIP);
compressionBuffer_ = folly::IOBuf::createCombined(kCompressionBufferSize);
compressionBuffer_ = BufHelpers::createCombined(kCompressionBufferSize);
}
// Create the base json