File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ members = [
6
6
7
7
[package ]
8
8
name = " fast_log"
9
- version = " 1.7.2 "
9
+ version = " 1.7.3 "
10
10
description = " Rust async log High-performance asynchronous logging"
11
11
readme = " Readme.md"
12
12
authors = [" ce <zhuxiujia@qq.com>" ]
Original file line number Diff line number Diff line change @@ -449,13 +449,15 @@ pub enum KeepType {
449
449
KeepTime ( Duration ) ,
450
450
/// keep log pack num(.log,.zip.lz4...more)
451
451
KeepNum ( i64 ) ,
452
- KeepDate ,
453
452
}
454
453
455
454
impl Keep for KeepType {
456
455
fn do_keep ( & self , dir : & str , temp_name : & str ) -> i64 {
457
456
let mut removed = 0 ;
458
457
match self {
458
+ KeepType :: All => {
459
+ //do nothing
460
+ }
459
461
KeepType :: KeepNum ( n) => {
460
462
let paths_vec = self . read_paths ( dir, temp_name) ;
461
463
for index in 0 ..paths_vec. len ( ) {
@@ -482,7 +484,6 @@ impl Keep for KeepType {
482
484
}
483
485
}
484
486
}
485
- _ => { }
486
487
}
487
488
removed
488
489
}
You can’t perform that action at this time.
0 commit comments