Commit df57fa8c authored by Matthew Sevey's avatar Matthew Sevey

renter: remove call to DownloadByRootLegacy from DownloadByRoot

parent a71a7ba7
Pipeline #152527417 passed with stages
in 29 minutes and 43 seconds
......@@ -361,7 +361,6 @@ func (r *Renter) managedDownloadByRoot(root crypto.Hash, offset, length uint64,
// DownloadByRoot will fetch data using the merkle root of that data. This uses
// all of the async worker primitives to improve speed and throughput.
func (r *Renter) DownloadByRoot(root crypto.Hash, offset, length uint64, timeout time.Duration) ([]byte, error) {
return r.DownloadByRootLegacy(root, offset, length, timeout)
// Block until there is memory available, and then ensure the memory gets
// returned.
if !r.memoryManager.Request(length, true) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment