Adjust cache to private variable
This commit is contained in:
parent
41605f743a
commit
20b21c0221
3 changed files with 24 additions and 6 deletions
3
main.go
3
main.go
|
@ -41,9 +41,6 @@ func main() {
|
|||
}
|
||||
fmt.Println("Import data from file successful")
|
||||
|
||||
geoloc.IPCache = geoloc.NewCache()
|
||||
fmt.Println("Cache created")
|
||||
|
||||
r := chi.NewRouter()
|
||||
r.Use(middleware.RequestID)
|
||||
r.Use(middleware.Logger)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue