diff options
| author | 魏曹先生 <1992414357@qq.com> | 2025-09-22 19:04:59 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2025-09-22 19:04:59 +0800 |
| commit | 8b28bcefa5225b17e3aadda743383dc22f3f3ec3 (patch) | |
| tree | 1c314e8540a036e02faed9afe2d8e18f1291885e /crates/utils/tcp_connection/src/handle.rs | |
| parent | a759bf0c040cdfd0fa207133cbd8629d8be51334 (diff) | |
Remove redundant Sync bound from process future
Diffstat (limited to 'crates/utils/tcp_connection/src/handle.rs')
| -rw-r--r-- | crates/utils/tcp_connection/src/handle.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/utils/tcp_connection/src/handle.rs b/crates/utils/tcp_connection/src/handle.rs index 706d386..ee77b43 100644 --- a/crates/utils/tcp_connection/src/handle.rs +++ b/crates/utils/tcp_connection/src/handle.rs @@ -2,9 +2,9 @@ use crate::instance::ConnectionInstance; use std::future::Future; pub trait ClientHandle<RequestServer> { - fn process(instance: ConnectionInstance) -> impl Future<Output = ()> + Send + Sync; + fn process(instance: ConnectionInstance) -> impl Future<Output = ()> + Send; } pub trait ServerHandle<RequestClient> { - fn process(instance: ConnectionInstance) -> impl Future<Output = ()> + Send + Sync; + fn process(instance: ConnectionInstance) -> impl Future<Output = ()> + Send; } |
