Skip to content

Commit 7fb1f11

Browse files
committed
reduce timeout
1 parent 9647f39 commit 7fb1f11

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/chuko/api/anibis.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ defmodule Chuko.Api.Anibis do
4242
|> Req.get!(put_in(options[:params][:pi], page))
4343
|> then(fn %Req.Response{body: body} -> body["listings"] end)
4444
end,
45-
timeout: 300_000
45+
timeout: 30_000
4646
)
4747
|> Stream.flat_map(fn {:ok, res} -> res end)
4848
|> Stream.map(&cast_item/1)

lib/chuko/api/ricardo.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ defmodule Chuko.Api.Ricardo do
3838
|> Req.get!(put_in(options[:params][:page], page))
3939
|> then(fn %Req.Response{body: body} -> body["results"] end)
4040
end,
41-
timeout: 300_000
41+
timeout: 30_000
4242
)
4343
|> Stream.flat_map(fn {:ok, res} -> res end)
4444
|> Stream.filter(&(&1["isPromo"] == false))

lib/chuko/api/tutti_gql.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ defmodule Chuko.Api.TuttiGql do
308308
body["data"]["searchListingsByQuery"]["listings"]["edges"]
309309
end)
310310
end,
311-
timeout: 300_000
311+
timeout: 30_000
312312
)
313313
|> Stream.flat_map(fn {:ok, res} -> List.wrap(res) end)
314314
|> Enum.filter(&(not is_nil(&1)))

lib/chuko/search_engine.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ defmodule Chuko.SearchEngine do
1313
Module.safe_concat([Chuko.Api, platform])
1414
|> Platform.search(query, session_id)
1515
end,
16-
timeout: 300_000
16+
timeout: 30_000
1717
)
1818
|> Stream.filter(&(elem(&1, 0) == :ok))
1919
|> Enum.flat_map(fn {:ok, res} -> res end)

0 commit comments

Comments
 (0)