Skip to content

Commit

Permalink
zenohId in info
Browse files Browse the repository at this point in the history
  • Loading branch information
milyin committed Jun 11, 2024
1 parent 22828c8 commit 0d7b313
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/examples/z_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// ZettaScale Zenoh Team, <[email protected]>
//
use clap::Parser;
use zenoh::{config::ZenohId, prelude::*};
use zenoh::{info::ZenohId, prelude::*};
use zenoh_examples::CommonArgs;

#[tokio::main]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use async_std::{
};
use flume::Receiver;
use futures::join;
use zenoh::{config::ZenohId, key_expr::OwnedKeyExpr, time::Timestamp};
use zenoh::{info::ZenohId, key_expr::OwnedKeyExpr, time::Timestamp};
use zenoh_backend_traits::config::ReplicaConfig;

use super::{Digest, DigestConfig, LogEntry};
Expand Down
2 changes: 1 addition & 1 deletion zenoh/src/api/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2657,7 +2657,7 @@ impl crate::net::primitives::EPrimitives for Session {
/// # #[tokio::main]
/// # async fn main() {
/// use std::str::FromStr;
/// use zenoh::{config::ZenohId, prelude::*};
/// use zenoh::{info::ZenohId, prelude::*};
///
/// let mut config = zenoh::config::peer();
/// config.set_id(ZenohId::from_str("221b72df20924c15b8794c6bdb471150").unwrap());
Expand Down
2 changes: 1 addition & 1 deletion zenoh/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ pub mod session {

/// Tools to access information about the current zenoh [`Session`](crate::Session).
pub mod info {
pub use zenoh_protocol::core::ZenohId;
pub use zenoh_protocol::core::EntityGlobalId;
pub use zenoh_protocol::core::EntityId;
pub use crate::api::info::{
Expand Down Expand Up @@ -348,7 +349,6 @@ pub mod time {

/// Configuration to pass to [`open`](crate::session::open) and [`scout`](crate::scouting::scout) functions and associated constants
pub mod config {
pub use zenoh_protocol::core::ZenohId;
// pub use zenoh_config::{
// client, default, peer, Config, EndPoint, Locator, ModeDependentValue, PermissionsConf,
// PluginLoad, ValidatedMap, ZenohId,
Expand Down

0 comments on commit 0d7b313

Please sign in to comment.