aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-11-27 14:16:13 +0100
committerKim Alvefur <zash@zash.se>2021-11-27 14:16:13 +0100
commit3f4a73c66b342c520db2bbac0d2d44e9f32755ab (patch)
tree435f80ff5c1fe4d1fbf558a96379dd3037f84660
parent769a3ed263b5ff865bdac6bd6ccaf54ca650b8f6 (diff)
downloadprosody-3f4a73c66b342c520db2bbac0d2d44e9f32755ab.tar.gz
prosody-3f4a73c66b342c520db2bbac0d2d44e9f32755ab.zip
mod_admin_shell: Remove now redundant promise awaiting in dns:lookup()
-rw-r--r--plugins/mod_admin_shell.lua7
1 files changed, 1 insertions, 6 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua
index abfade16..ac7ad58a 100644
--- a/plugins/mod_admin_shell.lua
+++ b/plugins/mod_admin_shell.lua
@@ -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(...)