Skip to content

Commit

Permalink
chore: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
PureWhiteWu committed Aug 17, 2023
1 parent f313bb2 commit 571876d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ where
expire_at: v.1,
is_expired: now > v.1,
};
// The reference must be dropped, or will cause a deadlock when do expire.
drop(v);
self.do_expire(now);
Some(value)
Expand Down

0 comments on commit 571876d

Please sign in to comment.