Skip to content

Handle connection timeout in the publish functions - #128

Open
ppikula wants to merge 2 commits into
gausby:masterfrom
ppikula:handle-publish-timeout
Open

Handle connection timeout in the publish functions#128
ppikula wants to merge 2 commits into
gausby:masterfrom
ppikula:handle-publish-timeout

Conversation

@ppikula

@ppikula ppikula commented Jan 15, 2021

Copy link
Copy Markdown

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
Copy Markdown

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