Skip to content

Commit

Permalink
Make listen and connect endpoints ModeDependentValues (#269)
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 2910ddb commit b516c6f
Show file tree
Hide file tree
Showing 2 changed files with 33 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.

6 changes: 4 additions & 2 deletions zenoh-bridge-dds/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,15 @@ r#"--watchdog=[PERIOD] 'Experimental!! Run a watchdog thread that monitors the
config
.connect
.endpoints
.extend(endpoints.map(|p| p.parse().unwrap()))
.set(endpoints.map(|p| p.parse().unwrap()).collect())
.unwrap();
}
if let Some(endpoints) = args.values_of("listen") {
config
.listen
.endpoints
.extend(endpoints.map(|p| p.parse().unwrap()))
.set(endpoints.map(|p| p.parse().unwrap()).collect())
.unwrap();
}
if args.is_present("no-multicast-scouting") {
config.scouting.multicast.set_enabled(Some(false)).unwrap();
Expand Down

0 comments on commit b516c6f

Please sign in to comment.