summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorPetr Špaček <petr.spacek@nic.cz>2020-03-31 16:12:49 +0200
committerTomas Krizek <tomas.krizek@nic.cz>2020-04-02 13:57:32 +0200
commitb081236cf943d2cb55be0c6836f7f006aaddebab (patch)
tree2e05c4828ae78b99882cfa3148c45190fec57f9b /modules
parenttests: avoid deprecated -f 1 in config tests, use -n (diff)
downloadknot-resolver-b081236cf943d2cb55be0c6836f7f006aaddebab.tar.xz
knot-resolver-b081236cf943d2cb55be0c6836f7f006aaddebab.zip
daf: remove ordering requirement between http and daf modules
Diffstat (limited to 'modules')
-rw-r--r--modules/daf/daf.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/daf/daf.lua b/modules/daf/daf.lua
index 0a5a98df..0ddb62b2 100644
--- a/modules/daf/daf.lua
+++ b/modules/daf/daf.lua
@@ -328,11 +328,16 @@ local function publish(_, ws)
end
end
+function M.init()
+ -- avoid ordering problem between HTTP and daf module
+ event.after(0, M.config)
+end
+
-- @function Configure module
function M.config()
if not http then
if verbose() then
- log('[daf ] HTTP API unavailable because HTTP module is not loaded, use modules.load("daf > http")')
+ log('[daf ] HTTP API unavailable because HTTP module is not loaded, use modules.load("http")')
end
return
end