Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iesreza committed Mar 28, 2024
1 parent b846db8 commit 10e4721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/memo/drivers/memory/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (driver) Register() error {
time.Sleep(sleep)
var now = time.Now().Unix()
items.Range(func(key, value any) bool {
if key.(item).expires < now {
if value.(item).expires < now {
items.Delete(key)
}
return true
Expand Down

0 comments on commit 10e4721

Please sign in to comment.