Software /
code /
prosody
Changeset
11954:b963ac00c967
mod_admin_shell: Remove now redundant promise awaiting in dns:lookup()
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 27 Nov 2021 14:16:13 +0100 |
parents | 11953:848a522fd731 |
children | 11955:bad4c1bfd94e |
files | plugins/mod_admin_shell.lua |
diffstat | 1 files changed, 1 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua Sat Nov 27 14:15:55 2021 +0100 +++ b/plugins/mod_admin_shell.lua Sat Nov 27 14:16:13 2021 +0100 @@ -1369,12 +1369,7 @@ 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(...)