mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 10:45:30 +00:00
udp: config: request worker timeout in ms instead of microseconds
This commit is contained in:
parent
5d8a4dd38c
commit
7afaa2702a
2 changed files with 3 additions and 3 deletions
|
|
@ -22,7 +22,7 @@ pub fn run_request_worker(
|
|||
let mut torrents = TorrentMaps::default();
|
||||
let mut small_rng = SmallRng::from_entropy();
|
||||
|
||||
let timeout = Duration::from_micros(config.handlers.channel_recv_timeout_microseconds);
|
||||
let timeout = Duration::from_millis(config.handlers.channel_recv_timeout_ms);
|
||||
|
||||
loop {
|
||||
if let Ok((sender_index, request, src)) = request_receiver.recv_timeout(timeout) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue