mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 10:15:31 +00:00
aquatic_ws: shorten field names in ConnectionMeta, PeerConnection
This commit is contained in:
parent
da2d5986b9
commit
b76f8cdebc
4 changed files with 16 additions and 18 deletions
|
|
@ -16,11 +16,9 @@ use crate::protocol::*;
|
|||
pub struct ConnectionMeta {
|
||||
/// Index of socket worker responsible for this connection. Required for
|
||||
/// sending back response through correct channel to correct worker.
|
||||
pub socket_worker_index: usize,
|
||||
/// SocketAddr of peer
|
||||
pub peer_socket_addr: SocketAddr,
|
||||
/// Slab index of PeerConnection
|
||||
pub socket_worker_poll_token: Token,
|
||||
pub worker_index: usize,
|
||||
pub peer_addr: SocketAddr,
|
||||
pub poll_token: Token,
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -115,6 +113,6 @@ impl OutMessageSender {
|
|||
meta: ConnectionMeta,
|
||||
message: OutMessage
|
||||
){
|
||||
self.0[meta.socket_worker_index].send((meta, message));
|
||||
self.0[meta.worker_index].send((meta, message));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue