diff options
author | Lindolfo 'Lorn' Rodrigues <lorn@lornlab.org> | 2020-03-17 19:30:34 -0300 |
---|---|---|
committer | Lindolfo 'Lorn' Rodrigues <lorn@lornlab.org> | 2020-03-19 23:29:50 -0300 |
commit | 6589586f985b466194a6553c50ab3f7419a13b7f (patch) | |
tree | cdb94939b65877c420abd60a26f3eab595b9aae6 /config | |
parent | Merge pull request #14 from locaweb/fix-docs (diff) |
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
Diffstat (limited to 'config')
-rw-r--r-- | config/config.exs | 2 | ||||
-rw-r--r-- | config/test.exs | 3 |
2 files changed, 4 insertions, 1 deletions
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 |