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:
commit
d9d62a110c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue