Skip to content

Commit

Permalink
Timeout env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscar Olivera committed May 27, 2020
1 parent 9f8f631 commit 40501f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/whatsapp_api_request.ex
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ defmodule WhatsappApiRequest do
def process_request_options(options) do
[
hackney: [:insecure],
connect_timeout: 10_000,
recv_timeout: 10_000,
timeout: 10_000
connect_timeout: Application.get_env(:wax, :connect_timeout) || 10_000,
recv_timeout: Application.get_env(:wax, :recv_timeout) || 10_000,
timeout: Application.get_env(:wax, :timeout) || 10_000
] ++ options
end

Expand Down

0 comments on commit 40501f0

Please sign in to comment.