Skip to content

Commit

Permalink
edit doc
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Jul 27, 2024
1 parent ad95f77 commit 3b85eed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/plugin/file_split.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,8 @@ pub struct FileSplitAppender {
impl FileSplitAppender {
pub fn new<F: SplitFile + 'static>(
file_path: &str,
how_to_pack: Box<dyn CanRollingPack>,
rolling_type: Box<dyn Keep>,
rolling: Box<dyn CanRollingPack>,
keeper: Box<dyn Keep>,
packer: Box<dyn Packer>,
) -> Result<FileSplitAppender, LogError> {
let temp_name = {
Expand Down Expand Up @@ -353,15 +353,15 @@ impl FileSplitAppender {
spawn_saver(
temp_name.clone(),
receiver,
rolling_type,
keeper,
arc_packer.clone(),
);
Ok(Self {
temp_bytes,
dir_path: dir_path.to_string(),
file: Box::new(file) as Box<dyn SplitFile>,
sender,
can_pack: how_to_pack,
can_pack: rolling,
temp_name,
packer: arc_packer,
})
Expand Down

0 comments on commit 3b85eed

Please sign in to comment.