- Fixed implementation in geoip resolver trie tree
This commit is contained in:
Toby Chui
2024-07-31 21:57:59 +08:00
parent 6ac16caf37
commit 54475e4b99
4 changed files with 12 additions and 50 deletions

View File

@@ -16,13 +16,6 @@ func (s *Store) search(ip string) string {
ip = strings.Split(ip, ",")[0]
ip = strings.TrimSpace(ip)
}
//See if there are cached country code for this ip
/*
ccc, ok := s.geoipCache.Load(ip)
if ok {
return ccc.(string)
}
*/
//Search in geotrie tree
cc := ""