generated from alecodes/base-template
feat: add basic worker pool
This commit is contained in:
parent
d1a0212cb1
commit
30cf6dfff2
3 changed files with 165 additions and 20 deletions
|
|
@ -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
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue