From d79f1ffeecc7539b9f13bf1edbc3f1a9e82448b2 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sun, 14 Sep 2025 22:42:20 +0800 Subject: Fixed codes by Zed --- crates/utils/tcp_connection/src/handle.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'crates/utils/tcp_connection/src/handle.rs') diff --git a/crates/utils/tcp_connection/src/handle.rs b/crates/utils/tcp_connection/src/handle.rs index ab3a5ff..706d386 100644 --- a/crates/utils/tcp_connection/src/handle.rs +++ b/crates/utils/tcp_connection/src/handle.rs @@ -1,9 +1,10 @@ -use tokio::net::TcpStream; +use crate::instance::ConnectionInstance; +use std::future::Future; pub trait ClientHandle { - fn process(stream: TcpStream); + fn process(instance: ConnectionInstance) -> impl Future + Send + Sync; } pub trait ServerHandle { - fn process(stream: TcpStream); + fn process(instance: ConnectionInstance) -> impl Future + Send + Sync; } -- cgit