Software /
code /
prosody
Diff
plugins/mod_admin_shell.lua @ 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 |
parent | 11953:848a522fd731 |
child | 11991:bef2a59b00d1 |
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(...)