Skip to content

Commit

Permalink
Apply negotiated Reliability to Link config
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzypixelz committed Sep 5, 2024
1 parent 979796d commit d5e59e2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion io/zenoh-transport/src/unicast/establishment/accept.rs
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,11 @@ pub(crate) async fn accept_link(
is_compression: state.link.ext_compression.is_compression(),
},
priorities: state.transport.ext_qos.priorities(),
reliability: Reliability::from(link.link.is_reliable()),
reliability: state
.transport
.ext_qos
.reliability()
.unwrap_or_else(|| Reliability::from(link.link.is_reliable())),
};
let a_link = link.reconfigure(a_config);
let s_link = format!("{:?}", a_link);
Expand Down
6 changes: 5 additions & 1 deletion io/zenoh-transport/src/unicast/establishment/open.rs
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,11 @@ pub(crate) async fn open_link(
is_compression: state.link.ext_compression.is_compression(),
},
priorities: state.transport.ext_qos.priorities(),
reliability: Reliability::from(link.link.is_reliable()),
reliability: state
.transport
.ext_qos
.reliability()
.unwrap_or_else(|| Reliability::from(link.link.is_reliable())),
};
let o_link = link.reconfigure(o_config);
let s_link = format!("{:?}", o_link);
Expand Down

0 comments on commit d5e59e2

Please sign in to comment.