Skip to content

Commit

Permalink
Sender does not need to be Arc
Browse files Browse the repository at this point in the history
  • Loading branch information
MolotovCherry committed Sep 4, 2024
1 parent 0a31056 commit e34c022
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pueue/src/daemon/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ struct Spawner {
// whether the process has exited without our request
dirty: Arc<AtomicBool>,
request_stop: Arc<AtomicBool>,
park_tx: Arc<Sender<()>>,
park_tx: Sender<()>,
// we don't need mutation, but we do need Sync
park_rx: Mutex<Receiver<()>>,
}
Expand All @@ -459,7 +459,7 @@ impl Spawner {
child: Arc::default(),
dirty: Arc::default(),
request_stop: Arc::default(),
park_tx: Arc::new(park_tx),
park_tx,
park_rx: Mutex::new(park_rx),
}
}
Expand Down

0 comments on commit e34c022

Please sign in to comment.