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:
committed by
Facebook GitHub Bot
parent
b699a97243
commit
ccb3db67fd
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user