Commit f79d3f9a authored by Him188's avatar Him188

Fix AtomicResizeCacheList

parent e1c1c35d
......@@ -48,7 +48,7 @@ internal class AtomicResizeCacheList<E>(private val retention: Long) {
for (cache in list) {
val instant = cache.time.value
when {
instant == currentTime -> {
instant == 0L -> {
if (cache.time.compareAndSet(instant, currentTime + retention)) {
cache.element = element
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment