Commit 581cf904 authored by Marek Vavrusa's avatar Marek Vavrusa

modules/predict: fixed a typo

parent 1f5e4d04
......@@ -30,7 +30,7 @@ end
function predict.drain(ev)
local deleted = 0
for key, val in pairs(predict.queue) do
local qname, qtype = key:match('(%S*)%s(.*)')
local qtype, qname = key:match('(%S*)%s(.*)')
worker.resolve(qname, kres.type[qtype], 1, kres.query.NO_CACHE)
predict.queue[key] = nil
deleted = deleted + 1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment