Now works

This commit is contained in:
Wojciech Kozlowski 2024-09-20 22:06:01 +02:00
parent 00269411e2
commit b4d3eadd63
2 changed files with 6 additions and 2 deletions

View File

@ -107,7 +107,6 @@ impl AppMachine<FetchState> {
}
}
None => {
let mut queue = VecDeque::new();
queue.push_back(ApiParams::search(SearchParams::artist(
SearchArtistParams::new(artist.meta.clone()),
)));

View File

@ -228,7 +228,12 @@ impl JobInstance {
) -> Option<()> {
self.call_queue
.pop_front()
.map(|api_params| self.execute_call(api, events, api_params))
.map(|api_params| self.execute_call(api, events, api_params));
if !self.call_queue.is_empty() {
Some(())
} else {
None
}
}
fn execute_call(