We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
db.set
Is this code Better?
if let Some(prev) = prev { if let Some(when) = prev.expires_at { if expires_at.is_none() || when != expires_at.unwrap() { state.expirations.remove(&(when, key)); } } }
than
if let Some(prev) = prev { if let Some(when) = prev.expires_at { // clear expiration state.expirations.remove(&(when, key)); } }
The text was updated successfully, but these errors were encountered:
Nice catch. I somewhat prefer to swap their order so that we remove first, and then insert.
remove
insert
Sorry, something went wrong.
I opened a PR, help me review it please.
No branches or pull requests
theoretically bug in
db.set
method when current expire equal previous.Is this code Better?
than
The text was updated successfully, but these errors were encountered: