diff --git a/internal/maxmind/maxmind.go b/internal/maxmind/maxmind.go index 4337005..ec32991 100644 --- a/internal/maxmind/maxmind.go +++ b/internal/maxmind/maxmind.go @@ -34,11 +34,16 @@ type ( City = maxmind.City ) -var ( +const ( updateInterval = 24 * time.Hour - httpClient = &http.Client{ - Timeout: 10 * time.Second, - } + updateTimeout = 10 * time.Second +) + +var httpClient = &http.Client{ + Timeout: updateTimeout, +} + +var ( ErrResponseNotOK = gperr.New("response not OK") ErrDownloadFailure = gperr.New("download failure") )