autocommit 2022-01-25 16:45:44 CET
This commit is contained in:
parent
0336bf3bde
commit
c340df0d08
59 changed files with 3085 additions and 1710 deletions
15
src/tasks/slow_clients.rs
Normal file
15
src/tasks/slow_clients.rs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
use crate::State;
|
||||
use std::rc::Rc;
|
||||
|
||||
pub struct SlowClientHandler {
|
||||
pub state: Rc<State>,
|
||||
}
|
||||
|
||||
impl SlowClientHandler {
|
||||
pub async fn handle_events(&mut self) {
|
||||
loop {
|
||||
let client = self.state.slow_clients.pop().await;
|
||||
client.check_queue_size().await;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue