Daemonize the musicbrainz thread #217
@ -41,7 +41,7 @@ impl AppMachine<FetchState> {
|
||||
};
|
||||
|
||||
let (fetch_tx, fetch_rx) = mpsc::channel::<MbApiResult>();
|
||||
if let Err(err) = Self::submit_fetch_job(&inner.musicbrainz, fetch_tx, artist) {
|
||||
if let Err(err) = Self::submit_fetch_job(&*inner.musicbrainz, fetch_tx, artist) {
|
||||
return AppMachine::error_state(inner, err.to_string()).into();
|
||||
}
|
||||
|
||||
@ -78,7 +78,7 @@ impl AppMachine<FetchState> {
|
||||
}
|
||||
|
||||
fn submit_fetch_job(
|
||||
musicbrainz: &Box<dyn IMbJobSender>,
|
||||
musicbrainz: &dyn IMbJobSender,
|
||||
result_sender: ResultSender,
|
||||
artist: &Artist,
|
||||
) -> Result<(), DaemonError> {
|
||||
|
1
src/tui/lib/external/musicbrainz/mod.rs
vendored
1
src/tui/lib/external/musicbrainz/mod.rs
vendored
@ -1,3 +1,2 @@
|
||||
pub mod api;
|
||||
pub mod daemon;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user