Skip to content

Commit 47f89c2

Browse files
torrent: allow --downloader.verify use all CPU's (#8253)
1 parent 9da6b52 commit 47f89c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

erigon-lib/downloader/downloadercfg/downloadercfg.go

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ type Cfg struct {
5454

5555
func Default() *torrent.ClientConfig {
5656
torrentConfig := torrent.NewDefaultClientConfig()
57+
torrentConfig.PieceHashersPerTorrent = runtime.NumCPU()
5758

5859
// enable dht
5960
torrentConfig.NoDHT = true

0 commit comments

Comments
 (0)