Skip to content

Commit

Permalink
Make listen and connect endpoints ModeDependentValues (#181)
Browse files Browse the repository at this point in the history
* Update to new zenoh endpoints config

* Point back to zenoh dev/1.0.0 branch
  • Loading branch information
OlivierHecart authored Jul 5, 2024
1 parent 03e197d commit b07160d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 31 deletions.
58 changes: 29 additions & 29 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 10 additions & 2 deletions zenoh-bridge-ros2dds/src/zenoh_args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,18 @@ impl From<&CommonArgs> for Config {
.unwrap();
}
if !value.connect.is_empty() {
config.connect.endpoints = value.connect.iter().map(|v| v.parse().unwrap()).collect();
config
.connect
.endpoints
.set(value.connect.iter().map(|v| v.parse().unwrap()).collect())
.unwrap();
}
if !value.listen.is_empty() {
config.listen.endpoints = value.listen.iter().map(|v| v.parse().unwrap()).collect();
config
.listen
.endpoints
.set(value.listen.iter().map(|v| v.parse().unwrap()).collect())
.unwrap();
}
if value.no_multicast_scouting {
config.scouting.multicast.set_enabled(Some(false)).unwrap();
Expand Down

0 comments on commit b07160d

Please sign in to comment.