Repository navigation
Commit 5117a3e
src: simplify
Just a little piece of cleanup -- this aligns `TCPWrap::Connect`
with its sibling `TCPWrap::Bind`, deduplicates code and removes
an unnecessary heap allocation.
Signed-off-by: Anna Henningsen <anna@addaleax.net>
PR-URL: #62929
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>TCPWrap::Connect signature1 parent 70e8944 commit 5117a3e
2 files changed
Lines changed: 23 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
380 | 381 | | |
381 | 382 | | |
382 | 383 | | |
| |||
430 | 431 | | |
431 | 432 | | |
432 | 433 | | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
| 434 | + | |
439 | 435 | | |
440 | 436 | | |
441 | 437 | | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
| 438 | + | |
450 | 439 | | |
451 | 440 | | |
452 | 441 | | |
453 | | - | |
454 | | - | |
455 | | - | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
456 | 446 | | |
457 | 447 | | |
458 | 448 | | |
| |||
462 | 452 | | |
463 | 453 | | |
464 | 454 | | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
465 | 458 | | |
466 | 459 | | |
467 | 460 | | |
468 | 461 | | |
469 | 462 | | |
470 | 463 | | |
471 | 464 | | |
472 | | - | |
| 465 | + | |
473 | 466 | | |
474 | 467 | | |
475 | 468 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
87 | 89 | | |
88 | 90 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
| |||
0 commit comments