From 1df2cd21e339315cfcc81eeb5d9c90fcf9958f87 Mon Sep 17 00:00:00 2001 From: zxj Date: Sun, 28 Jul 2024 18:03:47 +0800 Subject: [PATCH] add impl CanPack --- src/plugin/file_split.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugin/file_split.rs b/src/plugin/file_split.rs index 29ed0b5..dda07be 100644 --- a/src/plugin/file_split.rs +++ b/src/plugin/file_split.rs @@ -158,6 +158,7 @@ impl SplitFile for RawFile { pub enum PackType { ByDate(DateTime), BySize(LogSize), + ByCanPack(Box), } impl CanPack for PackType { @@ -180,6 +181,9 @@ impl CanPack for PackType { None } } + PackType::ByCanPack(c) => { + c.is_pack(_appender, temp_name, temp_size, arg) + } }; } }