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

fixed endpoint not being read in arguments #211

Merged
merged 3 commits into from
May 2, 2022
Merged

Conversation

sbSteveK
Copy link
Contributor

@sbSteveK sbSteveK commented May 2, 2022

small bug fix in elastipubsub

Description of changes:

endpoint argument was not being parsed correctly and is now being read and stored

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@TwistedTwigleg TwistedTwigleg left a comment

Choose a reason for hiding this comment

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

👍

@@ -158,24 +159,26 @@ static void s_parse_options(int argc, char **argv, struct app_ctx *ctx) {
case 'h':
s_usage(0);
break;
case 0x02: {
Copy link
Contributor

Choose a reason for hiding this comment

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

Super minor question: Should we add a comment saying something like "start of text" or "stx" here? I found it a little confusing initially since the other switch statements are comparing against characters, but then once I searched up what 0x02 is mapped to it made sense, but I'm wondering if perhaps it would be best to add a quick comment just so at a glance it is more obvious what it is looking for.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Explicitly added the endpoint argument and instructions

Copy link
Contributor

@TwistedTwigleg TwistedTwigleg left a comment

Choose a reason for hiding this comment

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

Awesome! Looks great 👍

@sbSteveK sbSteveK merged commit d2545e9 into main May 2, 2022
@sbSteveK sbSteveK deleted the elastipubsub-endpoint-fix branch May 2, 2022 20:26
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.

None yet

2 participants