net: require 'dns' only once · nodejs/node@9db4f19 · GitHub
Skip to content

Commit 9db4f19

Browse files
bnoordhuisevanlucas
authored andcommitted
net: require 'dns' only once
Avoid unnecessary calls to require('dns') by caching the result of the first one. PR-URL: #12342 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 94385c6 commit 9db4f19

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

lib/net.js

Lines changed: 11 additions & 3 deletions

0 commit comments

Comments
 (0)