documentation
This commit is contained in:
@@ -416,6 +416,7 @@ async fn trigger_mb_import(
|
||||
// Run import in blocking task since rusqlite is sync
|
||||
let result = tokio::task::spawn_blocking(move || {
|
||||
shanty_data::mb_import::run_import_at_path(&db_path, &data_dir, |msg| {
|
||||
tracing::info!("{msg}");
|
||||
state_clone.tasks.update_progress(&tid_clone, 4, 8, msg);
|
||||
})
|
||||
})
|
||||
@@ -423,6 +424,7 @@ async fn trigger_mb_import(
|
||||
|
||||
match result {
|
||||
Ok(Ok(stats)) => {
|
||||
tracing::info!(%stats, "MusicBrainz import complete");
|
||||
state.tasks.complete(&tid, format!("{stats}"));
|
||||
}
|
||||
Ok(Err(e)) => {
|
||||
|
||||
Reference in New Issue
Block a user