]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
modules/predict: fixed a typo
authorMarek Vavrusa <marek@vavrusa.com>
Wed, 8 Jun 2016 07:20:57 +0000 (00:20 -0700)
committerMarek Vavrusa <marek@vavrusa.com>
Thu, 16 Jun 2016 17:14:58 +0000 (10:14 -0700)
modules/predict/predict.lua

index b570d7df0ea74cf0721a3a548902eb8a3edfafcd..86f5d44ace90f0153b04824238e7d749f22ade6b 100644 (file)
@@ -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