-
Notifications
You must be signed in to change notification settings - Fork 159
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
refactor Query.reply() #796
Conversation
@DenisBiryukov91 If this pull request contains a bugfix or a new feature, then please consider using |
zenoh/src/queryable.rs
Outdated
{ | ||
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)] |
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.
A comment justifying the #[allow(unused_mut)]
should be provided.
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.
done
replace unwrap on KeyxExpr.try_from with ? as it was originally for Sample in zenoh/tests/routing.rs
refactor Query.reply() into separate methods:reply, reply_del, reply_err (and reply_sample for backwards compatibility). Closes #785 .