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

refactor Query.reply() #796

Conversation

DenisBiryukov91
Copy link
Contributor

refactor Query.reply() into separate methods:reply, reply_del, reply_err (and reply_sample for backwards compatibility). Closes #785 .

@eclipse-zenoh-bot
Copy link
Contributor

@DenisBiryukov91 If this pull request contains a bugfix or a new feature, then please consider using Closes #ISSUE-NUMBER syntax to link it to an issue.

{
bail!("Attempted to reply on `{}`, which does not intersect with query `{}`, despite query only allowing replies on matching key expressions", self.key_expr, self.query.key_expr())
}
#[allow(unused_mut)]
Copy link
Member

Choose a reason for hiding this comment

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

A comment justifying the #[allow(unused_mut)] should be provided.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

replace unwrap  on KeyxExpr.try_from with ? as it was originally for Sample in zenoh/tests/routing.rs
@Mallets Mallets merged commit f12f338 into eclipse-zenoh:protocol_changes Mar 12, 2024
8 checks passed
@Mallets Mallets linked an issue Mar 13, 2024 that may be closed by this pull request
@DenisBiryukov91 DenisBiryukov91 deleted the fix/protcol_changes/query-reply-refactor branch March 13, 2024 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Refactor Query.reply api
3 participants