Skip to content

Commit

Permalink
fix: remove zenoh::scouting::WhatAmI reexport (#1062)
Browse files Browse the repository at this point in the history
`WhatAmI` is already present in `zenoh::config`.
  • Loading branch information
wyfo authored May 31, 2024
1 parent a448215 commit 382658a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
6 changes: 3 additions & 3 deletions examples/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ impl From<&CommonArgs> for Config {
None => Config::default(),
};
match value.mode {
Some(Wai::Peer) => config.set_mode(Some(zenoh::scouting::WhatAmI::Peer)),
Some(Wai::Client) => config.set_mode(Some(zenoh::scouting::WhatAmI::Client)),
Some(Wai::Router) => config.set_mode(Some(zenoh::scouting::WhatAmI::Router)),
Some(Wai::Peer) => config.set_mode(Some(zenoh::config::WhatAmI::Peer)),
Some(Wai::Client) => config.set_mode(Some(zenoh::config::WhatAmI::Client)),
Some(Wai::Router) => config.set_mode(Some(zenoh::config::WhatAmI::Router)),
None => Ok(None),
}
.unwrap();
Expand Down
6 changes: 3 additions & 3 deletions zenoh-ext/examples/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ impl From<&CommonArgs> for Config {
None => Config::default(),
};
match value.mode {
Some(Wai::Peer) => config.set_mode(Some(zenoh::scouting::WhatAmI::Peer)),
Some(Wai::Client) => config.set_mode(Some(zenoh::scouting::WhatAmI::Client)),
Some(Wai::Router) => config.set_mode(Some(zenoh::scouting::WhatAmI::Router)),
Some(Wai::Peer) => config.set_mode(Some(zenoh::config::WhatAmI::Peer)),
Some(Wai::Client) => config.set_mode(Some(zenoh::config::WhatAmI::Client)),
Some(Wai::Router) => config.set_mode(Some(zenoh::config::WhatAmI::Router)),
None => Ok(None),
}
.unwrap();
Expand Down
2 changes: 0 additions & 2 deletions zenoh/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,6 @@ pub mod handlers {

/// Scouting primitives
pub mod scouting {
/// Constants and helpers for zenoh `whatami` flags.
pub use zenoh_protocol::core::WhatAmI;
/// A zenoh Hello message.
pub use zenoh_protocol::scouting::Hello;

Expand Down
3 changes: 1 addition & 2 deletions zenohd/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt, EnvFilte
#[cfg(feature = "loki")]
use url::Url;
use zenoh::{
config::{Config, EndPoint, ModeDependentValue, PermissionsConf, ValidatedMap},
config::{Config, EndPoint, ModeDependentValue, PermissionsConf, ValidatedMap, WhatAmI},
core::Result,
scouting::WhatAmI,
};

#[cfg(feature = "loki")]
Expand Down

0 comments on commit 382658a

Please sign in to comment.