File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 ) )
Original file line number Diff line number Diff 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 ) ) )
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments