summaryrefslogtreecommitdiffstats
path: root/modules/http
diff options
context:
space:
mode:
authorVladimír Čunát <vladimir.cunat@nic.cz>2019-03-14 11:00:13 +0100
committerVladimír Čunát <vladimir.cunat@nic.cz>2019-06-13 15:03:15 +0200
commit6fca9bcbc210e4caba4760a7693818d683ca293f (patch)
treecea190427625537571e3060ee1e504390571144e /modules/http
parentmodule loading nitpick: improve error message (diff)
downloadknot-resolver-6fca9bcbc210e4caba4760a7693818d683ca293f.tar.xz
knot-resolver-6fca9bcbc210e4caba4760a7693818d683ca293f.zip
modules, docs: omit casting parameters of lua layers
Thanks to changes in this branch the functions are called with correctly typed parameters already, so these weird casts can be deleted.
Diffstat (limited to 'modules/http')
-rw-r--r--modules/http/http_trace.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/http/http_trace.lua b/modules/http/http_trace.lua
index 9e4d4667..9164b418 100644
--- a/modules/http/http_trace.lua
+++ b/modules/http/http_trace.lua
@@ -60,7 +60,6 @@ local function serve_trace(h, _)
local cond = condition.new()
local waiting, done = false, false
local finish_cb = ffi.cast('trace_callback_f', function (req)
- req = kres.request_t(req)
add_selected_records(answers, req.answ_selected)
add_selected_records(authority, req.auth_selected)
if waiting then
@@ -75,7 +74,6 @@ local function serve_trace(h, _)
type = qtype,
options = {'TRACE'},
init = function (req)
- req = kres.request_t(req)
req.trace_log = buffer_log_cb
req.trace_finish = finish_cb
end
@@ -106,4 +104,4 @@ return {
endpoints = {
['/trace'] = {'text/plain', serve_trace},
}
-} \ No newline at end of file
+}