Skip to content

Commit

Permalink
Fix bug building reply
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart committed Feb 28, 2024
1 parent 24e5ef5 commit e41f768
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions zenoh/src/queryable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,6 @@ impl SyncResolve for ReplyBuilder<'_> {
let mut ext_attachment = None;
#[cfg(feature = "unstable")]
{
data_info.source_id = source_info.source_id;
data_info.source_sn = source_info.source_sn;
if let Some(attachment) = attachment {
ext_attachment = Some(attachment.into());
}
Expand All @@ -224,6 +222,11 @@ impl SyncResolve for ReplyBuilder<'_> {
}};
}

#[cfg(feature = "unstable")]
{
data_info.source_id = source_info.source_id;
data_info.source_sn = source_info.source_sn;
}
let ext_sinfo = if data_info.source_id.is_some() || data_info.source_sn.is_some() {
Some(zenoh::put::ext::SourceInfoType {
zid: data_info.source_id.unwrap_or_default(),
Expand Down

0 comments on commit e41f768

Please sign in to comment.