rewrites List.foldl to Enum.each
This commit is contained in:
parent
d1983ed028
commit
943211b035
|
@ -87,9 +87,8 @@ defp ets_pop_n_expired(table, current_time, desired) do
|
||||||
)
|
)
|
||||||
|
|
||||||
popped
|
popped
|
||||||
|> List.foldl(true, fn e, acc ->
|
|> Enum.each(fn e ->
|
||||||
:ets.delete_object(table, e)
|
:ets.delete_object(table, e)
|
||||||
acc
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
popped
|
popped
|
||||||
|
|
Loading…
Reference in New Issue