Jelajahi Sumber

[🚀] 修复下载失败导致通道无法接受

bvbej 9 bulan lalu
induk
melakukan
6f6e149005
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      pkg/downloader/downloader.go

+ 1 - 1
pkg/downloader/downloader.go

@@ -49,7 +49,7 @@ type downloader struct {
 func newDownloader(f func() (protocols []string, builder func() fetcher.Fetcher)) *downloader {
 	d := &downloader{
 		DefaultController: controller.NewController(),
-		finishedCh:        make(chan error),
+		finishedCh:        make(chan error, 1),
 	}
 
 	d.fetchBuilders = make(map[string]func() fetcher.Fetcher)