MCPcopy Index your code
hub / github.com/nodejs/node / onlookup

Function onlookup

lib/dns.js:108–116  ·  view source on GitHub ↗
(err, addresses)

Source from the content-addressed store, hash-verified

106let promises = null; // Lazy loaded
107
108function onlookup(err, addresses) {
109 if (err) {
110 return this.callback(new DNSException(err, 'getaddrinfo', this.hostname));
111 }
112 this.callback(null, addresses[0], this.family || isIP(addresses[0]));
113 if (this[kPerfHooksDnsLookupContext] && hasObserver('dns')) {
114 stopPerf(this, kPerfHooksDnsLookupContext, { detail: { addresses } });
115 }
116}
117
118
119function onlookupall(err, addresses) {

Callers

nothing calls this directly

Calls 4

isIPFunction · 0.85
hasObserverFunction · 0.85
stopPerfFunction · 0.85
callbackMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…