From 6589586f985b466194a6553c50ab3f7419a13b7f Mon Sep 17 00:00:00 2001 From: Lindolfo 'Lorn' Rodrigues Date: Tue, 17 Mar 2020 19:30:34 -0300 Subject: Timeout option Now, you need to pass the timeout for the PowerDNS API in seconds We need to add the timeout to the GenServer.call function --- config/config.exs | 2 ++ config/test.exs | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/config.exs b/config/config.exs index 8233fe9..97ecef9 100644 --- a/config/config.exs +++ b/config/config.exs @@ -1,3 +1,5 @@ use Mix.Config +config :powerdnsex, timeout: 2 + import_config "#{Mix.env()}.exs" diff --git a/config/test.exs b/config/test.exs index eedc0c7..7f4d787 100644 --- a/config/test.exs +++ b/config/test.exs @@ -1,4 +1,5 @@ use Mix.Config -config :powerdnsex, url: "https://powerdns.example.com" +config :powerdnsex, url: "http://172.20.0.1:3005" config :powerdnsex, token: "example" +config :powerdnsex, timeout: 300 -- cgit v1.2.3