Commit d9d62a11 authored by kaniini's avatar kaniini
Browse files

Merge branch 'mr/retry-queue-remove-fold' into 'develop'

rewrites List.foldl to Enum.each in RetryQueue

See merge request !621
parents ccdc916f 943211b0
Pipeline #5959 passed with stages
in 3 minutes and 20 seconds
......@@ -87,9 +87,8 @@ defp ets_pop_n_expired(table, current_time, desired) do
)
popped
|> List.foldl(true, fn e, acc ->
|> Enum.each(fn e ->
:ets.delete_object(table, e)
acc
end)
popped
......
Supports Markdown
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