Skip to content

Commit

Permalink
Liveliness token: don't add last ':' is USER_DATA is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
JEnoch committed Nov 29, 2024
1 parent 481c9b5 commit cbaec52
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zenoh-plugin-ros2dds/src/liveliness_mgt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,8 @@ pub fn qos_to_key_expr(keyless: bool, qos: &Qos) -> OwnedKeyExpr {

// Since Iron USER_DATA QoS contains the type_hash and must be forwarded to remote bridge for Reader/Writer creation
if !ros_distro_is_less_than("iron") {
write!(w, ":").unwrap();
if let Some(v) = &qos.user_data {
write!(&mut w, "{}", String::from_utf8_lossy(v)).unwrap();
write!(&mut w, ":{}", String::from_utf8_lossy(v)).unwrap();
}
}

Expand Down

0 comments on commit cbaec52

Please sign in to comment.