~ihabunek/harvey

5ff98a42e8844b286a093da545f7ff9465d83100 — Ivan Habunek a month ago d7384a7 master
Increase timeout

Some requests take longer than the default 15s
1 files changed, 4 insertions(+), 1 deletions(-)

M lib/harvey/http.ex
M lib/harvey/http.ex => lib/harvey/http.ex +4 -1
@@ 4,7 4,10 @@ defmodule Harvey.Http do
  require Logger

  def req(opts \\ []) do
    [http_errors: :raise]
    [
      http_errors: :raise,
      receive_timeout: 60_000
    ]
    |> Keyword.merge(opts)
    |> Req.new()
    |> attach_delay()