File tree 1 file changed +15
-17
lines changed
1 file changed +15
-17
lines changed Original file line number Diff line number Diff line change @@ -64,31 +64,29 @@ const {
64
64
onStreamRead,
65
65
kUpdateTimer
66
66
} = require ( 'internal/stream_base_commons' ) ;
67
- const errors = require ( 'internal/errors' ) ;
68
67
const {
69
- ERR_INVALID_ADDRESS_FAMILY ,
70
- ERR_INVALID_ARG_TYPE ,
71
- ERR_INVALID_FD_TYPE ,
72
- ERR_INVALID_IP_ADDRESS ,
73
- ERR_INVALID_OPT_VALUE ,
74
- ERR_SERVER_ALREADY_LISTEN ,
75
- ERR_SERVER_NOT_RUNNING ,
76
- ERR_SOCKET_BAD_PORT ,
77
- ERR_SOCKET_CLOSED
78
- } = errors . codes ;
68
+ codes : {
69
+ ERR_INVALID_ADDRESS_FAMILY ,
70
+ ERR_INVALID_ARG_TYPE ,
71
+ ERR_INVALID_FD_TYPE ,
72
+ ERR_INVALID_IP_ADDRESS ,
73
+ ERR_INVALID_OPT_VALUE ,
74
+ ERR_SERVER_ALREADY_LISTEN ,
75
+ ERR_SERVER_NOT_RUNNING ,
76
+ ERR_SOCKET_BAD_PORT ,
77
+ ERR_SOCKET_CLOSED
78
+ } ,
79
+ errnoException,
80
+ exceptionWithHostPort,
81
+ uvExceptionWithHostPort
82
+ } = require ( 'internal/errors' ) ;
79
83
const { validateInt32, validateString } = require ( 'internal/validators' ) ;
80
84
const kLastWriteQueueSize = Symbol ( 'lastWriteQueueSize' ) ;
81
85
82
86
// Lazy loaded to improve startup performance.
83
87
let cluster ;
84
88
let dns ;
85
89
86
- const {
87
- errnoException,
88
- exceptionWithHostPort,
89
- uvExceptionWithHostPort
90
- } = errors ;
91
-
92
90
const {
93
91
kTimeout,
94
92
setUnrefTimeout,
You can’t perform that action at this time.
0 commit comments