Skip to content

Commit

Permalink
fix fastdate
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Aug 13, 2022
1 parent c0590e2 commit c4bdec6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ members = [

[package]
name = "fast_log"
version = "1.5.24"
version = "1.5.25"
description = "Rust async log High-performance asynchronous logging"
readme = "Readme.md"
authors = ["ce <zhuxiujia@qq.com>"]
Expand Down
2 changes: 1 addition & 1 deletion src/plugin/file_split.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ impl RollingType {
let file_name = item.file_name();
let name = file_name.to_str().unwrap_or("").to_string();
if let Some(time) = self.file_name_parse_time(&name, temp_name) {
if now.sub(duration.clone()) > time {
if now.clone().sub(duration.clone()) > time {
std::fs::remove_file(item.path());
}
}
Expand Down

0 comments on commit c4bdec6

Please sign in to comment.