-
Notifications
You must be signed in to change notification settings - Fork 330
Port check routine #3753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port check routine #3753
Conversation
core/port/reachability.go
Outdated
|
|
||
| for _, address := range echoServerAddresses { | ||
| go func(echoServerAddress string) { | ||
| err := func() error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems like a perfect candidate to extract to a separate function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applied
core/port/reachability.go
Outdated
| responseChan := make(chan struct{}) | ||
|
|
||
| // Background context-aware receiver | ||
| go func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Id also extract this as a separate func, can assign a comprehendable name to it then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applied
Codecov Report
@@ Coverage Diff @@
## master #3753 +/- ##
==========================================
- Coverage 43.99% 43.86% -0.14%
==========================================
Files 323 324 +1
Lines 16525 16588 +63
==========================================
+ Hits 7270 7276 +6
- Misses 8503 8559 +56
- Partials 752 753 +1
Continue to review full report at Codecov.
|
Co-authored-by: Viktoras <vkuznecovas@users.noreply.github.com>
This PR implements external UDP port check routine.
Not integrating routine into node in this PR for two reasons: