Skip to content

Commit 4fbffeb

Browse files
committed
Update stores.jl
1 parent b68a54b commit 4fbffeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/stores.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ end
4545
function do_put(sto::Store{T}, put_ev::Put, key::StorePutKey{T}) where {T}
4646
if sto.load < sto.capacity
4747
sto.load += one(UInt)
48-
sto.items[key.item] = get!(sto.items, key.item, zero(UInt)) + one(UInt)
48+
sto.items[key.item] = get(sto.items, key.item, zero(UInt)) + one(UInt)
4949
schedule(put_ev)
5050
end
5151
false

0 commit comments

Comments
 (0)