Skip to content

Commit

Permalink
fix compile on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
arlyon committed Feb 9, 2024
1 parent 1a90d25 commit 0df85ed
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/turborepo-filewatch/src/lib.rs
Expand Up @@ -211,8 +211,14 @@ async fn watch_events(
_watch_root: AbsoluteSystemPathBuf,
mut recv_file_events: mpsc::Receiver<EventResult>,
exit_signal: tokio::sync::oneshot::Receiver<()>,
broadcast_sender: broadcast::Sender<Result<Event, NotifyError>>,
mut broadcast_sender: OptionalWatch<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 0df85ed

Please sign in to comment.