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

rewrites List.foldl to Enum.each in RetryQueue

See merge request pleroma/pleroma!621
This commit is contained in:
kaniini 2019-01-03 22:30:02 +00:00
commit d9d62a110c
1 changed files with 1 additions and 2 deletions

View File

@ -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