Skip to content

Commit

Permalink
add impl PackType
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Jul 26, 2024
1 parent 58eac3f commit 2e980ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::filter::Filter;
use crate::plugin::console::ConsoleAppender;
use crate::plugin::file::FileAppender;
use crate::plugin::file_loop::FileLoopAppender;
use crate::plugin::file_split::{FileSplitAppender, Pack, Keep, Packer, RawFile, SplitFile};
use crate::plugin::file_split::{FileSplitAppender, IsPack, Keep, Packer, RawFile, SplitFile};
use crate::FastLogFormat;
use dark_std::sync::SyncVec;
use log::LevelFilter;
Expand Down Expand Up @@ -102,7 +102,7 @@ impl Config {
self
}
/// add a FileSplitAppender
pub fn file_split<P: Packer + Sync + 'static, R: Keep + 'static,H: Pack +'static>(
pub fn file_split<P: Packer + Sync + 'static, R: Keep + 'static,H: IsPack +'static>(
self,
file_path: &str,
how:H,
Expand Down Expand Up @@ -142,7 +142,7 @@ impl Config {
/// );
/// }
/// ```
pub fn split<F: SplitFile + 'static, R: Keep + 'static, P: Packer + Sync + 'static,H: Pack +'static>(
pub fn split<F: SplitFile + 'static, R: Keep + 'static, P: Packer + Sync + 'static,H: IsPack +'static>(
self,
file_path: &str,
keeper: R,
Expand Down

0 comments on commit 2e980ee

Please sign in to comment.