Daemonize the musicbrainz thread #217

Merged
wojtek merged 15 commits from 188---add-option-for-manual-input-during-fetch into main 2024-09-21 23:03:47 +02:00
2 changed files with 2 additions and 3 deletions
Showing only changes of commit 41199f4750 - Show all commits

View File

@ -41,7 +41,7 @@ impl AppMachine<FetchState> {
}; };
let (fetch_tx, fetch_rx) = mpsc::channel::<MbApiResult>(); 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(); return AppMachine::error_state(inner, err.to_string()).into();
} }
@ -78,7 +78,7 @@ impl AppMachine<FetchState> {
} }
fn submit_fetch_job( fn submit_fetch_job(
musicbrainz: &Box<dyn IMbJobSender>, musicbrainz: &dyn IMbJobSender,
result_sender: ResultSender, result_sender: ResultSender,
artist: &Artist, artist: &Artist,
) -> Result<(), DaemonError> { ) -> Result<(), DaemonError> {

View File

@ -1,3 +1,2 @@
pub mod api; pub mod api;
pub mod daemon; pub mod daemon;