Increase timeout needed to build page

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-11-07 18:55:49 +01:00
parent 0a2307b5a3
commit 1f23bb421e

View File

@@ -31,7 +31,7 @@ defmodule Mobilizon.Storage.Page do
fn -> Repo.all(paginate(query, page, limit)) end
]
|> Enum.map(&Task.async/1)
|> Enum.map(&Task.await/1)
|> Enum.map(&Task.await(&1, 15_000))
%__MODULE__{total: total, elements: elements}
end