diff options
author | Petr Špaček <petr.spacek@nic.cz> | 2020-03-31 16:12:49 +0200 |
---|---|---|
committer | Tomas Krizek <tomas.krizek@nic.cz> | 2020-04-02 13:57:32 +0200 |
commit | b081236cf943d2cb55be0c6836f7f006aaddebab (patch) | |
tree | 2e05c4828ae78b99882cfa3148c45190fec57f9b /modules | |
parent | tests: avoid deprecated -f 1 in config tests, use -n (diff) | |
download | knot-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.lua | 7 |
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 |