refactor: small refactor on maxmind code

This commit is contained in:
yusing 2025-05-28 22:14:10 +08:00
parent 32d8292b17
commit 371e756307

View file

@ -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")
)