Skip to content

Commit

Permalink
将数据库自动清理改至一个月
Browse files Browse the repository at this point in the history
  • Loading branch information
Chikage0o0 committed Oct 13, 2023
1 parent 10651a5 commit bc784b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/yande_popular/src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl DB {
let key = key?;
let value = self.0.get(&key)?.unwrap();
let value = u64::from_be_bytes(value.as_ref().try_into().unwrap());
if timestamp - value > 60 * 60 * 24 * 7 {
if timestamp - value > 60 * 60 * 24 * 30 {
keys.push(key);
}
}
Expand Down

0 comments on commit bc784b1

Please sign in to comment.