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

Update ValidURIs function to accept UDS #25

Merged
merged 1 commit into from
Nov 1, 2022
Merged

Update ValidURIs function to accept UDS #25

merged 1 commit into from
Nov 1, 2022

Conversation

cooldarkdryplace
Copy link
Contributor

This PR updates ValidURIs check to handle UDS addresses differently from TCP socket addresses.
One distinct difference is that UDS does not require a port number. I am adding a test for this function.

beanstalk_test.go Outdated Show resolved Hide resolved
beanstalk_test.go Outdated Show resolved Hide resolved
beanstalk.go Outdated Show resolved Hide resolved
@cooldarkdryplace
Copy link
Contributor Author

Thanks for the review. I have updated the PR.

@@ -95,12 +95,16 @@ func ValidURIs(uris []string) error {
}

for _, uri := range uris {
hostport, _, err := parseURI(uri)
address, uriType, err := parseURI(uri)

Choose a reason for hiding this comment

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

Brilliant! This should be merged

Copy link
Owner

Choose a reason for hiding this comment

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

Fine! But only because you said so, not because @cooldarkdryplace made the PR 😉

@prep prep merged commit 630ecac into prep:main Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants