This commit is contained in:
Wojciech Kozlowski 2024-09-21 19:11:15 +02:00
parent 39bd5e7935
commit 9b4b8763be

View File

@ -9,11 +9,6 @@ use crate::tui::{
}, },
}; };
enum JobError {
JobQueueEmpty,
EventChannelDisconnected,
}
pub struct MusicBrainzDaemon { pub struct MusicBrainzDaemon {
musicbrainz: Box<dyn IMusicBrainz>, musicbrainz: Box<dyn IMusicBrainz>,
job_receiver: mpsc::Receiver<Job>, job_receiver: mpsc::Receiver<Job>,
@ -66,6 +61,11 @@ impl JobInstance {
} }
} }
enum JobError {
JobQueueEmpty,
EventChannelDisconnected,
}
pub struct JobChannel { pub struct JobChannel {
sender: mpsc::Sender<Job>, sender: mpsc::Sender<Job>,
receiver: mpsc::Receiver<Job>, receiver: mpsc::Receiver<Job>,