Skip to content

Commit 74192dd

Browse files
danbevBethGriggs
authored andcommittedOct 16, 2018
http2: reduce require calls in http2/core
This commit removes unnecesary requires of http and internal/util in http2/core.js Backport-PR-URL: #22850 PR-URL: #20422 Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 41e8931 commit 74192dd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎lib/internal/http2/core.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@ const { onServerStream,
2323
Http2ServerResponse,
2424
} = require('internal/http2/compat');
2525
const { utcDate } = require('internal/http');
26-
const { promisify } = require('internal/util');
26+
const {
27+
promisify,
28+
customInspectSymbol: kInspect
29+
} = require('internal/util');
2730
const { isArrayBufferView } = require('internal/util/types');
28-
const { _connectionListener: httpConnectionListener } = require('http');
31+
const { _connectionListener: httpConnectionListener } = http;
2932
const { createPromise, promiseResolve } = process.binding('util');
3033
const debug = util.debuglog('http2');
3134

@@ -67,7 +70,6 @@ const { constants, nameForErrorCode } = binding;
6770
const NETServer = net.Server;
6871
const TLSServer = tls.Server;
6972

70-
const kInspect = require('internal/util').customInspectSymbol;
7173
const { kIncomingMessage } = require('_http_common');
7274
const { kServerResponse } = require('_http_server');
7375

0 commit comments

Comments
 (0)
Please sign in to comment.