Skip to content

Commit b1b0eea

Browse files
committed
remove dead code
1 parent a560919 commit b1b0eea

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ members = [
66

77
[package]
88
name = "fast_log"
9-
version = "1.7.2"
9+
version = "1.7.3"
1010
description = "Rust async log High-performance asynchronous logging"
1111
readme = "Readme.md"
1212
authors = ["ce <zhuxiujia@qq.com>"]

src/plugin/file_split.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,13 +449,15 @@ pub enum KeepType {
449449
KeepTime(Duration),
450450
/// keep log pack num(.log,.zip.lz4...more)
451451
KeepNum(i64),
452-
KeepDate,
453452
}
454453

455454
impl Keep for KeepType {
456455
fn do_keep(&self, dir: &str, temp_name: &str) -> i64 {
457456
let mut removed = 0;
458457
match self {
458+
KeepType::All => {
459+
//do nothing
460+
}
459461
KeepType::KeepNum(n) => {
460462
let paths_vec = self.read_paths(dir, temp_name);
461463
for index in 0..paths_vec.len() {
@@ -482,7 +484,6 @@ impl Keep for KeepType {
482484
}
483485
}
484486
}
485-
_ => {}
486487
}
487488
removed
488489
}

0 commit comments

Comments
 (0)