GlowieXYZ / GDCSST

Digital Combat Simulator Server Tracker written in Go
GNU General Public License v2.0
0 stars 2 forks source link

Split backend function into smaller functions #7

Closed GlowieXYZ closed 2 years ago

GlowieXYZ commented 2 years ago

As it currently stands its just updateServers() that just goes into a for-loop and does its things. If one steps breaks, everything can break. So my proposal is to split up parts into different functions. One for fetching data, one for updating stats, one for updating the servers cached in redis, calculate maxims etc etc. And if one of those fails, the function will keep running.

GlowieXYZ commented 2 years ago

I split everything up. Hopefully its less error prone now.