mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
mod_admin_shell: Remove now redundant promise awaiting in dns:lookup()
This commit is contained in:
parent
769a3ed263
commit
3f4a73c66b
1 changed files with 1 additions and 6 deletions
|
@ -1369,12 +1369,7 @@ end
|
|||
|
||||
function def_env.dns:lookup(name, typ, class)
|
||||
local resolver = get_resolver(self.session);
|
||||
local ret, err = async.wait_for(resolver:lookup_promise(name, typ, class));
|
||||
if ret then
|
||||
return true, ret;
|
||||
elseif err then
|
||||
return false, err;
|
||||
end
|
||||
return resolver:lookup_promise(name, typ, class)
|
||||
end
|
||||
|
||||
function def_env.dns:addnameserver(...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue