|
|
|
@ -4,6 +4,8 @@ use crate::message::MsgType;
|
|
|
|
|
use crate::crypto::PublicKey; |
|
|
|
|
#[cfg(feature = "std")] |
|
|
|
|
use crate::way::Way; |
|
|
|
|
#[cfg(feature = "std")] |
|
|
|
|
use crate::ways::get_all_possible_ways; |
|
|
|
|
|
|
|
|
|
#[cfg(feature = "std")] |
|
|
|
|
use std::thread; |
|
|
|
@ -51,7 +53,7 @@ impl Transport {
|
|
|
|
|
#[cfg(feature = "std")] |
|
|
|
|
impl Transport { |
|
|
|
|
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 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|