-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
29 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,9 +11,8 @@ | |
// Contributors: | ||
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
#[cfg(feature = "auth_usrpwd")] | ||
use super::ext::auth::UsrPwdId; | ||
use std::time::Duration; | ||
|
||
use async_trait::async_trait; | ||
use rand::Rng; | ||
use tokio::sync::Mutex; | ||
|
@@ -32,6 +31,8 @@ use zenoh_protocol::{ | |
}; | ||
use zenoh_result::ZResult; | ||
|
||
#[cfg(feature = "auth_usrpwd")] | ||
use super::ext::auth::UsrPwdId; | ||
#[cfg(feature = "shared-memory")] | ||
use super::ext::shm::AuthSegment; | ||
#[cfg(feature = "shared-memory")] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
// Contributors: | ||
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
use super::super::authentication::AuthId; | ||
use std::{ | ||
sync::{Arc, RwLock as SyncRwLock}, | ||
time::Duration, | ||
|
@@ -33,6 +32,7 @@ use zenoh_result::{zerror, ZResult}; | |
use crate::stats::TransportStats; | ||
use crate::{ | ||
unicast::{ | ||
authentication::AuthId, | ||
link::{LinkUnicastWithOpenAck, TransportLinkUnicast}, | ||
transport_unicast_inner::{AddLinkResult, TransportUnicastTrait}, | ||
TransportConfigUnicast, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
// Contributors: | ||
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
use super::super::authentication::AuthId; | ||
use std::{ | ||
fmt::DebugStruct, | ||
sync::{Arc, RwLock}, | ||
|
@@ -29,6 +28,7 @@ use zenoh_protocol::{ | |
}; | ||
use zenoh_result::{bail, zerror, ZResult}; | ||
|
||
use super::super::authentication::AuthId; | ||
#[cfg(feature = "stats")] | ||
use crate::stats::TransportStats; | ||
use crate::{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,15 +12,17 @@ | |
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
mod test { | ||
use std::sync::{Arc, Mutex}; | ||
use std::time::Duration; | ||
use std::{ | ||
fs, | ||
path::Path, | ||
sync::{Arc, Mutex}, | ||
time::Duration, | ||
}; | ||
|
||
use tokio::runtime::Handle; | ||
use zenoh::prelude::*; | ||
use zenoh_core::{zlock, ztimeout}; | ||
|
||
use std::fs; | ||
use std::path::Path; | ||
|
||
const TIMEOUT: Duration = Duration::from_secs(60); | ||
const SLEEP: Duration = Duration::from_secs(1); | ||
const KEY_EXPR: &str = "test/demo"; | ||
|