Skip to content

Commit

Permalink
fix build on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Lyon authored and Alexander Lyon committed Feb 14, 2024
1 parent e92480b commit ffa666e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions crates/turborepo-filewatch/src/lib.rs
Expand Up @@ -205,14 +205,8 @@ async fn watch_events(
_watch_root: AbsoluteSystemPathBuf,
mut recv_file_events: mpsc::Receiver<EventResult>,
exit_signal: tokio::sync::oneshot::Receiver<()>,
mut broadcast_sender: OptionalWatch<broadcast::Sender<Result<Event, NotifyError>>>,
broadcast_sender: broadcast::Sender<Result<Event, NotifyError>>,
) {
let Ok(broadcast_sender) = broadcast_sender.get().await.map(|b| b.clone()) else {
// if we are never sent a sender, we should not run the watcher
tracing::debug!("no downstream listeners, exiting");
return;
};

let mut exit_signal = exit_signal;
'outer: loop {
tokio::select! {
Expand Down

0 comments on commit ffa666e

Please sign in to comment.