Skip to content

Commit 5d9fb73

Browse files
committed
fix(macos): minor fix for macos build
1 parent cf0abd1 commit 5d9fb73

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/pyroscope.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ impl PyroscopeAgent {
182182
drop(cvar);
183183
drop(running);
184184

185-
// TODO: move this channel to PyroscopeAgent
186185
let (tx, rx): (Sender<u64>, Receiver<u64>) = channel();
187186
self.timer.attach_listener(tx.clone())?;
188187
self.tx = Some(tx.clone());

src/timer/kqueue.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
use crate::utils::check_err;
88
use crate::Result;
99

10-
use std::sync::{mpsc::Sender, Arc, Mutex};
10+
use std::sync::{
11+
mpsc::{channel, Receiver, Sender},
12+
Arc, Mutex,
13+
};
1114
use std::{thread, thread::JoinHandle};
1215

1316
#[derive(Debug, Default)]
@@ -54,8 +57,8 @@ impl Timer {
5457
txs.lock()?.iter().for_each(|tx| {
5558
// Send event to attached Sender
5659
match tx.send(current) {
57-
Ok(_) => {},
58-
Err(_) => {},
60+
Ok(_) => {}
61+
Err(_) => {}
5962
}
6063
});
6164

0 commit comments

Comments
 (0)