Skip to content

Commit dd9a154

Browse files
committed
fix compilation
1 parent 440cb90 commit dd9a154

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/capture.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use std::{
22
cell::Cell,
3-
future,
43
time::{Duration, Instant},
54
};
65

src/connect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ async fn receive_loop(
211211
let mut buf = [0u8; MAX_EVENT_SIZE];
212212
while let Ok(_) = conn.recv(&mut buf).await {
213213
if let Ok(event) = buf.try_into() {
214-
tx.send((handle, event));
214+
tx.send((handle, event)).expect("channel closed");
215215
}
216216
}
217217
}

src/server.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ impl Server {
9292
let config = Rc::new(config);
9393

9494
Self {
95+
active: Rc::new(Cell::new(None)),
9596
config,
9697
client_manager,
9798
port,

0 commit comments

Comments
 (0)