fix expired method
This commit is contained in:
parent
eb92676a47
commit
815cab46f2
|
@ -33,7 +33,7 @@ pub enum DeleteMode {
|
||||||
|
|
||||||
impl File {
|
impl File {
|
||||||
pub fn expired(self: &Self) -> bool {
|
pub fn expired(self: &Self) -> bool {
|
||||||
self.delete_at < chrono::Local::now()
|
self.delete_at > chrono::Local::now()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_redis_key(self: &Self, prefix: String) -> String {
|
pub fn get_redis_key(self: &Self, prefix: String) -> String {
|
||||||
|
|
Loading…
Reference in New Issue