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

Handle connection timeout in the publish functions #128

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ppikula
Copy link

@ppikula ppikula commented Jan 15, 2021

Hey, I noticed during the tests that the connection timeout error is not handled in the lib. My stack trace below. I'd like to be able to handle it in my app's logic.

 ** (WithClauseError) no with clause matching: {:error, :timeout}
 code: conn = ...
 stacktrace:
   (tortoise 0.9.5) lib/tortoise.ex:269: Tortoise.publish/4

@coveralls
Copy link

Pull Request Test Coverage Report for Build 1

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 88.043%

Totals Coverage Status
Change from base Build 51: 0.2%
Covered Lines: 567
Relevant Lines: 644

💛 - Coveralls

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.

2 participants