From 3b85eed61c4cf229917ef6e0cccdb69d1c5f734a Mon Sep 17 00:00:00 2001 From: zxj Date: Sat, 27 Jul 2024 21:26:45 +0800 Subject: [PATCH] edit doc --- src/plugin/file_split.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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, })