# HG changeset patch # User Kim Alvefur # Date 1638018973 -3600 # Node ID b963ac00c967cf0f883592c11cc2a912bd0b1ed5 # Parent 848a522fd731c05182fd710bed110f8bfc16034c mod_admin_shell: Remove now redundant promise awaiting in dns:lookup() diff -r 848a522fd731 -r b963ac00c967 plugins/mod_admin_shell.lua --- 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(...)