Skip to content
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

fix(internal/host): Extract optimizes the return of the minimum index IP #3421

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

demoManito
Copy link
Member

@demoManito demoManito commented Sep 13, 2024

Description (what this PR does / why we need it):

Extract optimizes the return of the minimum index IP

Which issue(s) this PR fixes (resolves / be part of):

Other special notes for the reviewers:

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Sep 13, 2024
@demoManito demoManito force-pushed the fix/extract-minium-ip branch 2 times, most recently from 8fb83b0 to 3ab2f14 Compare October 16, 2024 08:32
@@ -50,10 +50,12 @@ func Extract(hostPort string, lis net.Listener) (string, error) {
if err != nil {
return "", err
}
minIndex := int(^uint(0) >> 1)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This maximum value increases the understanding mind, this extra operation is not required here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant