mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-14 06:48:20 +00:00
save (#5010)
This commit is contained in:
parent
a7d07ad04d
commit
206f41811d
@ -103,7 +103,6 @@ func New(snapDir string, verbosity lg.Level, dbg bool, natif nat.Interface, down
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// rates are divided by 2 - I don't know why it works, maybe bug inside torrent lib accounting
|
// rates are divided by 2 - I don't know why it works, maybe bug inside torrent lib accounting
|
||||||
log.Warn("alex", "a", rate.Limit(uploadRate.Bytes()), "b", 2*DefaultNetworkChunkSize)
|
|
||||||
torrentConfig.UploadRateLimiter = rate.NewLimiter(rate.Limit(uploadRate.Bytes()), 2*DefaultNetworkChunkSize) // default: unlimited
|
torrentConfig.UploadRateLimiter = rate.NewLimiter(rate.Limit(uploadRate.Bytes()), 2*DefaultNetworkChunkSize) // default: unlimited
|
||||||
if downloadRate.Bytes() < 500_000_000 {
|
if downloadRate.Bytes() < 500_000_000 {
|
||||||
b := int(2 * DefaultNetworkChunkSize)
|
b := int(2 * DefaultNetworkChunkSize)
|
||||||
|
Loading…
Reference in New Issue
Block a user