package job import ( "github.com/mhsanaei/3x-ui/v3/internal/web/service" ) // GeoIPCountryJob is the weekly refresh of the local country // database behind the public pages' node flags (Q7: a local MMDB on // the master, never an external per-node lookup). The service does // the conditional download, validation and hot swap; with no update // URL configured the pass is a no-op, so scheduling it is harmless // on installs that never opted in. type GeoIPCountryJob struct{} // NewGeoIPCountryJob creates a geoip country job instance. func NewGeoIPCountryJob() *GeoIPCountryJob { return new(GeoIPCountryJob) } // Run executes one update pass. func (j *GeoIPCountryJob) Run() { service.UpdateGeoIPCountry() }