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

Add no responders #450

Merged
merged 2 commits into from
May 25, 2022
Merged

Add no responders #450

merged 2 commits into from
May 25, 2022

Conversation

Jarema
Copy link
Member

@Jarema Jarema commented May 23, 2022

No description provided.

@Jarema Jarema marked this pull request as ready for review May 23, 2022 13:47
@Jarema Jarema requested a review from caspervonb May 23, 2022 13:51
@@ -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 {
Copy link
Collaborator

@caspervonb caspervonb May 24, 2022

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.

Suggested change
fn is_no_responders(&self) -> bool {
fn is_no_responders(&self) -> bool {

Copy link
Member Author

@Jarema Jarema May 24, 2022

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.

Copy link
Collaborator

@caspervonb caspervonb left a comment

Choose a reason for hiding this comment

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

lgtm

@Jarema Jarema merged commit 83369cc into main May 25, 2022
@Jarema Jarema deleted the jarema/no-responders branch May 25, 2022 08:02
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