mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 10:15:31 +00:00
WIP: aquatic_ws: use microseconds for poll timeout, remove unwrap
This commit is contained in:
parent
a5108f813d
commit
0f072244ab
3 changed files with 8 additions and 6 deletions
|
|
@ -60,8 +60,8 @@ pub fn run_poll_loop(
|
|||
listener: ::std::net::TcpListener,
|
||||
opt_tls_acceptor: Option<TlsAcceptor>,
|
||||
){
|
||||
let poll_timeout = Duration::from_millis(
|
||||
config.network.poll_timeout_milliseconds
|
||||
let poll_timeout = Duration::from_micros(
|
||||
config.network.poll_timeout_microseconds
|
||||
);
|
||||
let ws_config = WebSocketConfig {
|
||||
max_message_size: Some(config.network.websocket_max_message_size),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue