jannislehmann / csgo-tools

A toolset for csgo, which automatically downloads new demos and features a demo parser for (currently basic) performance metrics on match and player basis.
10 stars 1 forks source link

Request demos one by one #36

Closed jannislehmann closed 3 years ago

jannislehmann commented 3 years ago

Requesting hundreds of demos at once does not work because the GC only returns a few at once. Therefore, we could simply add a channel to it and request one demo after another.

Really good resource: https://venilnoronha.io/designing-asynchronous-functions-with-go

jannislehmann commented 3 years ago

Temporary workaround: https://github.com/Cludch/csgo-tools/pull/18/files#diff-19f7cba6b937587fd172200705783137305d1bbd3d33a7acdecdf4508dcabe70R75