-
Notifications
You must be signed in to change notification settings - Fork 9
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
Raise different exception on processing timed out message #28
Conversation
915ada4
to
917de51
Compare
Codecov ReportBase: 86.75% // Head: 87.51% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #28 +/- ##
==========================================
+ Coverage 86.75% 87.51% +0.76%
==========================================
Files 33 33
Lines 1963 2019 +56
Branches 226 231 +5
==========================================
+ Hits 1703 1767 +64
+ Misses 193 186 -7
+ Partials 67 66 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
917de51
to
0a65c90
Compare
Conflicts: ansq/tcp/types/message.py tests/test_read_messages.py
There is no way a message could appear in messages() after fin() and touch()
return response | ||
async def wrapper(message: "NSQMessage", *args: Any, **kwargs: Any) -> Any: | ||
if message.is_processed: | ||
raise RuntimeWarning(f"Message id={message.id} has already been processed") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While RuntimeWarning
is technically an exception, it should not be raised manually in code, because conceptually it belongs to the warnings mechanism. This must be fixed in a following-up PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tracking issue - #72.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm 👍
Thanks @GinTR1k for the improvement and @Ivashkaization for the review! |
No description provided.