diff --git a/pkg/proxy/crawl.go b/pkg/proxy/crawl.go index 8ac67f0..a6cc696 100644 --- a/pkg/proxy/crawl.go +++ b/pkg/proxy/crawl.go @@ -13,7 +13,7 @@ import ( ) func CrawlProxies(ctx context.Context, getters []getter.Getter) { - var proxies structs.Proxies + var proxies = structs.NewProxies(make([]structs.Proxy, 0)) log.Infof("共%d个抓取源", len(getters)) var wg sync.WaitGroup for _, gtr := range getters {