From 0e2e39774e44b31b049796d763af43cf4040a5a6 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Sun, 18 Dec 2022 15:46:13 +0100 Subject: [PATCH] Use db-based location cache by default --- internal/config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/config/config.go b/internal/config/config.go index e33a6ea..60c8386 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -75,7 +75,7 @@ type Geo struct { // IPCacheDB contains the path to the SQLite DB with the IP Geodata cache. IPCacheDB string `yaml:"ipCacheDb,omitempty"` - IPCacheType types.CacheType `yaml:"cacheType,omitempty"` + IPCacheType types.CacheType `yaml:"ipCacheType,omitempty"` // LocationCache contains the path to the Location Geodata cache. LocationCache string `yaml:"locationCache,omitempty"` @@ -108,7 +108,7 @@ func Default() *Config { IPCacheType: types.CacheTypeDB, LocationCache: "/wttr.in/cache/loc", LocationCacheDB: "/wttr.in/cache/geoloc.db", - LocationCacheType: types.CacheTypeFiles, + LocationCacheType: types.CacheTypeDB, Nominatim: []Nominatim{ { Name: "locationiq",