Skip to content

Commit 080010c

Browse files
committed
Minor cleanup
1 parent b2a87ee commit 080010c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

fact/src/bpf.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ use libc::c_char;
1010
use log::{debug, error, info};
1111
use tokio::{
1212
io::unix::AsyncFd,
13-
sync::{
14-
broadcast,
15-
watch::{self, Receiver},
16-
},
13+
sync::{broadcast, watch},
1714
task::JoinHandle,
1815
};
1916

@@ -170,7 +167,7 @@ impl Bpf {
170167
// Gather events from the ring buffer and print them out.
171168
pub fn start(
172169
mut self,
173-
mut running: Receiver<bool>,
170+
mut running: watch::Receiver<bool>,
174171
event_counter: EventCounter,
175172
) -> JoinHandle<anyhow::Result<()>> {
176173
info!("Starting BPF worker...");

0 commit comments

Comments
 (0)