feat: add basic worker pool

This commit is contained in:
Alexander Navarro 2024-11-26 15:44:08 -03:00
parent d1a0212cb1
commit 30cf6dfff2
3 changed files with 165 additions and 20 deletions

View file

@ -164,15 +164,15 @@ func main() {
return
}
for _, pokedex := range pokeApi.Collections {
if pokedex.IsDefault() {
continue
}
err = pokedex.FetchNodes(getPokemons, synchronizator.StartPagination)
if err != nil {
fmt.Println(err)
return
}
}
// for _, pokedex := range pokeApi.Collections {
// if pokedex.IsDefault() {
// continue
// }
//
// err = pokedex.FetchNodes(getPokemons, synchronizator.StartPagination)
// if err != nil {
// fmt.Println(err)
// return
// }
// }
}