Skip to content

Commit

Permalink
Change TargetDependentValue prefix from to- to to_
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart committed Feb 10, 2025
1 parent 4363477 commit a0e47b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions DEFAULT_CONFIG.json5
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@
/// because of a private IP.
/// Accepts a single value (e.g. autoconnect: "always") which applies whatever node would be auto-connected to,
/// or different values for router and/or peer depending on the type of node detected
/// (e.g. autoconnect_strategy : { "to-router": "always", "to-peer": "greater-zid" }),
/// (e.g. autoconnect_strategy : { to_router: "always", to_peer: "greater-zid" }),
/// or different values for router or peer mode
/// (e.g. autoconnect_strategy : { peer: { "to-router": "always", "to-peer": "greater-zid" } }).
autoconnect_strategy: { peer: { "to-router": "always", "to-peer": "always" } },
/// (e.g. autoconnect_strategy : { peer: { to_router: "always", to_peer: "greater-zid" } }).
autoconnect_strategy: { peer: { to_router: "always", to_peer: "always" } },
/// Whether or not to listen for scout messages on UDP multicast and reply to them.
listen: true,
},
Expand Down
2 changes: 1 addition & 1 deletion commons/zenoh-config/src/mode_dependent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ impl<T> ModeDependent<T> for Option<ModeDependentValue<T>> {
}
}

serde_with::with_prefix!(target_prefix "to-");
serde_with::with_prefix!(target_prefix "to_");

#[derive(Debug, Clone, Copy, Deserialize, Serialize)]
pub struct TargetValues<T> {
Expand Down

0 comments on commit a0e47b1

Please sign in to comment.