diff --git a/src/plugin/file_split.rs b/src/plugin/file_split.rs index 1072b04..360595d 100644 --- a/src/plugin/file_split.rs +++ b/src/plugin/file_split.rs @@ -317,8 +317,8 @@ pub struct FileSplitAppender { impl FileSplitAppender { pub fn new( file_path: &str, - how_to_pack: Box, - rolling_type: Box, + rolling: Box, + keeper: Box, packer: Box, ) -> Result { let temp_name = { @@ -353,7 +353,7 @@ impl FileSplitAppender { spawn_saver( temp_name.clone(), receiver, - rolling_type, + keeper, arc_packer.clone(), ); Ok(Self { @@ -361,7 +361,7 @@ impl FileSplitAppender { dir_path: dir_path.to_string(), file: Box::new(file) as Box, sender, - can_pack: how_to_pack, + can_pack: rolling, temp_name, packer: arc_packer, })