1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-12-03 03:40:56 +03:00

migrate uses of legacy alias folly::io::getCodec

Reviewed By: hanidamlaj

Differential Revision: D68642745

fbshipit-source-id: 68cf1999537f2233dfb6778d22cdc2c371708b04
This commit is contained in:
Yedidya Feldblum
2025-01-31 10:28:59 -08:00
committed by Facebook GitHub Bot
parent b699a97243
commit ccb3db67fd
2 changed files with 4 additions and 3 deletions

View File

@@ -550,7 +550,8 @@ void FileQLogger::outputLogsToFile(const std::string& path, bool prettyJson) {
: folly::toJson(toDynamic());
if (compress_) {
try {
auto gzipCodec = folly::io::getCodec(folly::io::CodecType::GZIP);
auto gzipCodec =
folly::compression::getCodec(folly::io::CodecType::GZIP);
auto compressed = gzipCodec->compress(qLog);
fileObj << compressed;
} catch (std::invalid_argument& ex) {