From 5b102469a2a4bc39b06dabf071d1205523e9642f Mon Sep 17 00:00:00 2001 From: timerzz Date: Wed, 11 Dec 2024 13:45:55 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8Dproxies=20panic?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/proxy/crawl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {