-
Notifications
You must be signed in to change notification settings - Fork 176
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 protocol extensions for user attachment #590
Conversation
examples/examples/z_pub_thr.rs
Outdated
|
||
let data: Value = (0usize..size) | ||
let data: Value = (0usize..dbg!(payload_size)) |
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.
Why dbg!
?
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.
forgot to remove it, done now
This PR introduces a throughput regression of Approving this PR so as to unblock eclipse-zenoh/zenoh-c#203 and eclipse-zenoh/zenoh-cpp#86. |
This PR adds an
attachment
extension toPut
,Del
,Query
, andReply
Zenoh messages.This is a necessary step to allow the user to attach any arbitrary metadata to
put
,del
,query
, andreply
operations.An example of some on-going effort of such API in zenoh-c can be found here: eclipse-zenoh/zenoh-c#190
Although I believe this PR will not evolve any further, I'll keep it in Draft for the time being since a validation with a full attachment API is desirable before merging.
In addition, this PR explicitly deconstructs any type in the write codec in such a way that, anytime a new protocol extension is added, the compiler will highlight where the new extension needs to be handled in the code.