Commit 4577292
authored
chore: Removed pruning of the duplicate connections (#16461)
Removes pruning of "duplicate" peer connections.
Libp2p manages this, but more importantly, it's perfectly fine to have
multiple connections per peer.
([source](https://discuss.libp2p.io/t/random-walk-peer-discovery-adds-connections-to-same-peer/584))
Finally, choosing the most recent ones to remove seems somewhat
arbitrary (i.e., why not prune the oldest).
With this change, the preferred gossip test hasn't flaked for me using
`grind` at all.File tree
2 files changed
+1
-72
lines changed- yarn-project/p2p/src/services/peer-manager
2 files changed
+1
-72
lines changedLines changed: 0 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | 418 | | |
453 | 419 | | |
454 | 420 | | |
| |||
692 | 658 | | |
693 | 659 | | |
694 | 660 | | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | 661 | | |
699 | 662 | | |
700 | 663 | | |
| |||
Lines changed: 1 addition & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
502 | | - | |
503 | | - | |
504 | | - | |
| 502 | + | |
505 | 503 | | |
506 | 504 | | |
507 | 505 | | |
| |||
623 | 621 | | |
624 | 622 | | |
625 | 623 | | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | 624 | | |
659 | 625 | | |
660 | 626 | | |
| |||
0 commit comments