| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 23eda41 commit 4035cbe
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -297,12 +297,7 @@ function queryServer(worker, message) { | |||
| 297 | 297 | constructor = SharedHandle; | |
| 298 | 298 | } | |
| 299 | 299 | ||
| 300 | - handle = new constructor(key, | ||
| 301 | - address, | ||
| 302 | - message.port, | ||
| 303 | - message.addressType, | ||
| 304 | - message.fd, | ||
| 305 | - message.flags); | ||
| 300 | + handle = new constructor(key, address, message); | ||
| 306 | 301 | handles.set(key, handle); | |
| 307 | 302 | } | |
| 308 | 303 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ const { constants } = internalBinding('tcp_wrap'); | |||
| 13 | 13 | ||
| 14 | 14 | module.exports = RoundRobinHandle; | |
| 15 | 15 | ||
| 16 | - function RoundRobinHandle(key, address, port, addressType, fd, flags) { | ||
| 16 | + function RoundRobinHandle(key, address, { port, fd, flags }) { | ||
| 17 | 17 | this.key = key; | |
| 18 | 18 | this.all = new Map(); | |
| 19 | 19 | this.free = new Map(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,7 +6,7 @@ const net = require('net'); | |||
| 6 | 6 | ||
| 7 | 7 | module.exports = SharedHandle; | |
| 8 | 8 | ||
| 9 | - function SharedHandle(key, address, port, addressType, fd, flags) { | ||
| 9 | + function SharedHandle(key, address, { port, addressType, fd, flags }) { | ||
| 10 | 10 | this.key = key; | |
| 11 | 11 | this.workers = new Map(); | |
| 12 | 12 | this.handle = null; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments