diff --git a/backend/fetch/fetcher/fetcher.go b/backend/fetch/fetcher/fetcher.go index fbbec39..4697b99 100644 --- a/backend/fetch/fetcher/fetcher.go +++ b/backend/fetch/fetcher/fetcher.go @@ -44,7 +44,7 @@ func (f *Fetcher) Fetch() ([]model.Server, error) { } result := make([]model.Server, 0) - for _, entry := range servers { // TODO: Temporary + for _, entry := range servers { country, continent, iso := entry.Location(f.geoip) server := model.Server{ diff --git a/backend/fetch/klei/servers.go b/backend/fetch/klei/servers.go index 9504270..b136e43 100644 --- a/backend/fetch/klei/servers.go +++ b/backend/fetch/klei/servers.go @@ -65,10 +65,10 @@ func (d Server) Location(geoip *geoip2.Reader) (string, string, string) { func Servers(lobby []LobbyEntry, region string) ([]Server, int) { var result []Server - wp := workerpool.New(100) + wp := workerpool.New(1000) ch := make(chan struct{}, len(lobby)) - for _, entry := range lobby[:200] { // TODO: temp + for _, entry := range lobby { wp.Submit(func() { details, err := readEntry(entry, region) if err != nil {