fix for go test

This commit is contained in:
zu1k
2020-08-16 12:16:54 +08:00
parent 151184389a
commit 892ba586ed
2 changed files with 3 additions and 1 deletions

View File

@@ -7,6 +7,6 @@ var (
ProjectName = "proxypool"
)
func init() {
func InitGeoIpDB() {
GeoIp = proxy.NewGeoIP("assets/GeoLite2-City.mmdb")
}

View File

@@ -23,6 +23,8 @@ func main() {
fmt.Println(err)
}
}
app.InitGeoIpDB()
go app.Cron()
fmt.Println("Do the first crawl...")
app.CrawlGo()