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 case clause error #29

Merged
merged 3 commits into from
Sep 23, 2019
Merged

Fix case clause error #29

merged 3 commits into from
Sep 23, 2019

Conversation

blatyo
Copy link
Member

@blatyo blatyo commented Sep 22, 2019

NSQ can be flaky over the network. If the request times out, it causes a case clause match error causing the process to crash. If the network remains flaky, the failure can cascade up the supervision tree, causing the whole application to crash.

%{status_code: status, data: body}
|> normalize_response

%HTTPotion.ErrorResponse{} = error ->
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 is the primary change

status_code: integer,
status_txt: binary,
}
data: binary,
Copy link
Member Author

Choose a reason for hiding this comment

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

rest of this stuff is formatter changes


otp_release:
- "19.3"
- "20.2"
- "20.3"
Copy link
Member Author

Choose a reason for hiding this comment

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

or changing dependencies to get things to build

Copy link
Member

@MaxPower15 MaxPower15 left a comment

Choose a reason for hiding this comment

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

:shipit:

@blatyo blatyo merged commit 270f78d into master Sep 23, 2019
@delete-merged-branch delete-merged-branch bot deleted the fix-case-clause-error branch September 23, 2019 13:25
@blatyo
Copy link
Member Author

blatyo commented Sep 23, 2019

@MaxPower15 I assume you're the one with power to publish?

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

3 participants