mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 02:35:31 +00:00
aquatic_ws: network: ConnectionMap: use Token as key
This commit is contained in:
parent
a85a72ff66
commit
0ec73d6cea
2 changed files with 27 additions and 23 deletions
|
|
@ -5,6 +5,7 @@ use flume::{Sender, Receiver};
|
|||
use hashbrown::HashMap;
|
||||
use indexmap::IndexMap;
|
||||
use parking_lot::Mutex;
|
||||
use mio::Token;
|
||||
|
||||
pub use aquatic::common::ValidUntil;
|
||||
|
||||
|
|
@ -19,7 +20,7 @@ pub struct ConnectionMeta {
|
|||
/// SocketAddr of peer
|
||||
pub peer_socket_addr: SocketAddr,
|
||||
/// Slab index of PeerConnection
|
||||
pub socket_worker_slab_index: usize,
|
||||
pub socket_worker_poll_token: Token,
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue