zenoh
zenoh copied to clipboard
replier_id in a Reply seems to be not managed properly
Describe the bug
Accessing replier_id() of a Reply always returns None.
Tested with 1.0.0.alpha-2 from crates.io & dev/1.0.0 from repo.
Had a look into sources and it seems replier_id is not always managed properly.
To reproduce
let replies = session
.get("query-selector")
.target(QueryTarget::All)
.consolidation(ConsolidationMode::None)
.allowed_destination(Locality::Any);
.wait()
.unwrap();
while let Ok(reply) = replies.recv() {
match reply.result() {
Ok(sample) => match sample.kind() {
SampleKind::Put => {
let replier_id = reply.replier_id();
dbg!(replier_id);
SampleKind::Delete => {
error!("Delete");
}
},
Err(err) => error!("receive error: {:?})", err),
}
}
}
System info
Linux Debian Bookworm on AMD Ryzen 5700G
Same is with sample's source_info's source_id
Linked issue: https://github.com/eclipse-zenoh/zenoh/issues/709