Software /
code /
prosody
Diff
net/dns.lua @ 6753:33426c56f5d5
net.dns: Remove resolver:new(), as it needlessly and incorrectly duplicates dns.resolver()
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 06 Jul 2015 19:11:39 +0100 |
parent | 6646:9795b8cf14f1 |
child | 6780:647adfd8f738 |
line wrap: on
line diff
--- a/net/dns.lua Mon Jul 06 17:07:05 2015 +0100 +++ b/net/dns.lua Mon Jul 06 19:11:39 2015 +0100 @@ -213,15 +213,6 @@ end -function resolver:new() -- - - - - - - - - - - - - - - - - - - - - resolver - local r = { active = {}, cache = {}, unsorted = {} }; - setmetatable(r, resolver); - setmetatable(r.cache, cache_metatable); - setmetatable(r.unsorted, { __mode = 'kv' }); - return r; -end - - -- packet layer -------------------------------------------------- packet layer @@ -1054,8 +1045,6 @@ function dns.resolver () -- - - - - - - - - - - - - - - - - - - - - resolver - -- this function seems to be redundant with resolver.new () - local r = { active = {}, cache = {}, unsorted = {}, wanted = {}, best_server = 1 }; setmetatable (r, resolver); setmetatable (r.cache, cache_metatable);