Skip to content
Snippets Groups Projects
Unverified Commit 002ee26f authored by Wolfgang Welz's avatar Wolfgang Welz Committed by GitHub
Browse files

Feat: Improve peer selection logic to avoid parallel connections (#101)


* Log failed connection attempts

* Only trigger drop event, when a neighbor was removed

* Remove unused dropNeighbors

* Use only one loop to process channels in selection

* Update out neighbors less often

* feat: introduce SaltUpdated event

* fix: use global parameters

* Update salt log messages

* fix: do not close public channels to prevent panics during shutdown

* fix: assure correct order of events

* feat: add selection event tests

* Set update interval to 1s and full updat interval to 1m

* Use subtests for the protocol tests

* fix: send peering drop message only when event is triggered

* Update packages/autopeering/selection/manager.go

Co-Authored-By: default avatarjkrvivian <jkrvivian@gmail.com>

Co-authored-by: default avatarjkrvivian <jkrvivian@gmail.com>
parent 54340442
No related branches found
No related tags found
No related merge requests found
Showing
with 806 additions and 671 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment