|
|
@ -4,6 +4,8 @@ use crate::message::MsgType; |
|
|
|
use crate::crypto::PublicKey; |
|
|
|
use crate::crypto::PublicKey; |
|
|
|
#[cfg(feature = "std")] |
|
|
|
#[cfg(feature = "std")] |
|
|
|
use crate::way::Way; |
|
|
|
use crate::way::Way; |
|
|
|
|
|
|
|
#[cfg(feature = "std")] |
|
|
|
|
|
|
|
use crate::ways::get_all_possible_ways; |
|
|
|
|
|
|
|
|
|
|
|
#[cfg(feature = "std")] |
|
|
|
#[cfg(feature = "std")] |
|
|
|
use std::thread; |
|
|
|
use std::thread; |
|
|
@ -51,7 +53,7 @@ impl Transport { |
|
|
|
#[cfg(feature = "std")] |
|
|
|
#[cfg(feature = "std")] |
|
|
|
impl Transport { |
|
|
|
impl Transport { |
|
|
|
pub fn new() -> Self { |
|
|
|
pub fn new() -> Self { |
|
|
|
let transport = Self { ways: Vec::<Box<dyn Way + Send + Sync>>::new(), msg_pool: Vec::<(Message, PublicKey)>::new() }; |
|
|
|
let transport = Self { ways: get_all_possible_ways(), msg_pool: Vec::<(Message, PublicKey)>::new() }; |
|
|
|
transport |
|
|
|
transport |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|