diff options
| author | Yulian Kuncheff <670212+daegalus@users.noreply.github.com> | 2025-03-25 15:02:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-25 10:02:05 -0400 |
| commit | f29a200f09ca3f720266164421304ed28de57dc6 (patch) | |
| tree | 3b6008abb87b6f7c1476d2a56a0834602bede960 /decaymap | |
| parent | 18cd8a66a254989c7cb0c90ea58df43b1883289f (diff) | |
| download | anubis-f29a200f09ca3f720266164421304ed28de57dc6.tar.xz anubis-f29a200f09ca3f720266164421304ed28de57dc6.zip | |
Linting and staticcheck fixes. (#101)
* Fix linting and staticcheck issues
* Add changelog update
* Remove SetNext
Diffstat (limited to 'decaymap')
| -rw-r--r-- | decaymap/decaymap.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decaymap/decaymap.go b/decaymap/decaymap.go index edcbd1a..7498bb5 100644 --- a/decaymap/decaymap.go +++ b/decaymap/decaymap.go @@ -64,7 +64,7 @@ func (m *Impl[K, V]) Get(key K) (V, bool) { m.lock.Lock() // Since previously reading m.data[key], the value may have been updated. // Delete the entry only if the expiry time is still the same. - if m.data[key].expiry == value.expiry { + if m.data[key].expiry.Equal(value.expiry) { delete(m.data, key) } m.lock.Unlock() |
