Skip to content

Commit e7e334b

Browse files
committed
http_timeout -> http_recv_timeout, http_conn_timeout -> http_timeout
1 parent 9e6258d commit e7e334b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/endpoint.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ defmodule SparkPost.Endpoint do
4545
|> Map.merge(base_request_headers)
4646

4747
request_options = options
48-
|> Keyword.put(:timeout, Application.get_env(:sparkpost, :http_conn_timeout, 8000))
49-
|> Keyword.put(:recv_timeout, Application.get_env(:sparkpost, :http_timeout, 5000))
48+
|> Keyword.put(:timeout, Application.get_env(:sparkpost, :http_timeout, 30000))
49+
|> Keyword.put(:recv_timeout, Application.get_env(:sparkpost, :http_recv_timeout, 8000))
5050

5151
HTTPoison.request(method, url, request_body, request_headers, request_options)
5252
|> handle_response

0 commit comments

Comments
 (0)