Removing USE_LZ4_CONFIGS prop dependency

This commit is contained in:
Pavel Shevaev 2023-05-25 18:25:56 +03:00
parent c38b78e9d3
commit 2e965dcf98
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
tags

View File

@ -242,7 +242,7 @@ function _config_unpack_payload($format, $payload)
return config_msgpack_unpack($msg_packed); return config_msgpack_unpack($msg_packed);
} }
function config_make_standalone_ext_bundle(array $configs, $file_path) function config_make_standalone_ext_bundle(array $configs, $file_path, $use_lz4 = true)
{ {
$cache_entries = array(); $cache_entries = array();
foreach($configs as $conf) foreach($configs as $conf)
@ -261,7 +261,7 @@ function config_make_standalone_ext_bundle(array $configs, $file_path)
$cache_entries[] = $entry; $cache_entries[] = $entry;
} }
$packed_data = config_pack_bundle($cache_entries, get('USE_LZ4_CONFIGS')); $packed_data = config_pack_bundle($cache_entries, $use_lz4);
ensure_write($file_path, $packed_data); ensure_write($file_path, $packed_data);
} }