Skip to content

Commit

Permalink
add impl CanPack
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Jul 28, 2024
1 parent 6691121 commit 1df2cd2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/plugin/file_split.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ impl SplitFile for RawFile {
pub enum PackType {
ByDate(DateTime),
BySize(LogSize),
ByCanPack(Box<dyn CanPack>),
}

impl CanPack for PackType {
Expand All @@ -180,6 +181,9 @@ impl CanPack for PackType {
None
}
}
PackType::ByCanPack(c) => {
c.is_pack(_appender, temp_name, temp_size, arg)
}
};
}
}
Expand Down

0 comments on commit 1df2cd2

Please sign in to comment.