Software /
code /
prosody
Changeset
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 (2015-07-06) |
parents | 6752:3cc2bc9c1bff |
children | 6754:c72b00dade25 |
files | net/dns.lua |
diffstat | 1 files changed, 0 insertions(+), 11 deletions(-) [+] |
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);