diff options
Diffstat (limited to 'p2p/src/peer')
-rw-r--r-- | p2p/src/peer/mod.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/p2p/src/peer/mod.rs b/p2p/src/peer/mod.rs index 1e98f1b..1fc5ccf 100644 --- a/p2p/src/peer/mod.rs +++ b/p2p/src/peer/mod.rs @@ -11,10 +11,9 @@ use smol::{ }; use karyon_core::{ - async_util::{select, Either, TaskGroup, TaskResult}, + async_util::{select, Either, Executor, TaskGroup, TaskResult}, event::{ArcEventSys, EventListener, EventSys}, util::{decode, encode}, - GlobalExecutor, }; use karyon_net::Endpoint; @@ -67,7 +66,7 @@ impl Peer { codec: Codec, remote_endpoint: Endpoint, conn_direction: ConnDirection, - ex: GlobalExecutor, + ex: Executor<'static>, ) -> ArcPeer { Arc::new(Peer { id: id.clone(), |