Skip to content

Commit

Permalink
Update src/lavinmq/exchange/dedup_ext.cr
Browse files Browse the repository at this point in the history
Co-authored-by: Christina Dahlén <[email protected]>
  • Loading branch information
snichme and kickster97 authored Nov 22, 2024
1 parent 68fad0b commit 90dd5db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lavinmq/exchange/dedup_ext.cr
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module LavinMQ
end

def insert(key : T, ttl : UInt32? = nil)
@store.delete(@store.first_key) if @store.size >= @size
@store.shift if @store.size >= @size
@store[key] = ttl ? RoughTime.unix_ms + ttl : nil
end
end
Expand Down

0 comments on commit 90dd5db

Please sign in to comment.