-
Notifications
You must be signed in to change notification settings - Fork 169
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
Add no responders #450
Add no responders #450
Conversation
@@ -1068,17 +1077,17 @@ pub struct Message { | |||
pub reply: Option<String>, | |||
pub payload: Bytes, | |||
pub headers: Option<HeaderMap>, | |||
status: Option<NonZeroU16>, | |||
description: Option<String>, | |||
} | |||
|
|||
impl Message { | |||
fn is_no_responders(&self) -> bool { |
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.
Put this an extension trait? or just make it a private helper fn in the scope you're gonna use it.
fn is_no_responders(&self) -> bool { | |
fn is_no_responders(&self) -> bool { |
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.
it is a private function now.
EDIT: extension trait would make sense if we we're making that available optionally to the users.
53efce0
to
ad06081
Compare
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
ad06081
to
a3c370c
Compare
No description provided.