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
|
|
@ -75,7 +75,7 @@ pub struct HandlerConfig {
|
|||
/// Maximum number of requests to receive from channel before locking
|
||||
/// mutex and starting work
|
||||
pub max_requests_per_iter: usize,
|
||||
pub channel_recv_timeout_microseconds: u64,
|
||||
pub channel_recv_timeout_ms: u64,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
|
|
@ -143,7 +143,7 @@ impl Default for HandlerConfig {
|
|||
fn default() -> Self {
|
||||
Self {
|
||||
max_requests_per_iter: 10000,
|
||||
channel_recv_timeout_microseconds: 200,
|
||||
channel_recv_timeout_ms: 100,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue