2
0
mirror of https://github.com/owncast/owncast.git synced 2024-10-10 19:16:02 +00:00
Tim Cooper 12eb59f611
refactor geoip ()
- Introduce a new Client type to remove the global variables from the file
- Use the sync package to prevent race conditions with the cache and
  enabled flag
- Cache results for IPs, even if the result is nil

There are still data races around the client.Geo variable, but that can be
resolved in a future commit.
2021-10-12 13:21:37 -07:00
..
2021-10-12 13:21:37 -07:00