Skip to content

Commit

Permalink
add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Jul 27, 2024
1 parent 664675c commit f8431e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugin/file_split.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ impl Packer for Box<dyn Packer> {

/// is can do pack?
pub trait CanRollingPack: Send {
/// is it can do rolling? just return Some(log_file_name).notice the log_file_name must have prefix of temp_name.
/// if you return None, it's not do rolling now.
fn can(&mut self, appender: &dyn Packer, temp_name: &str, temp_size: usize, arg: &FastLogRecord) -> Option<String>;
}

Expand Down

0 comments on commit f8431e1

Please sign in to comment.