mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-05 15:03:07 +00:00
[node] Fix: ensure that retrieve works for small files
This commit is contained in:
parent
f14eeb688b
commit
94f6838d19
@ -132,7 +132,7 @@ proc retrieve*(
|
||||
##
|
||||
try:
|
||||
let
|
||||
batch = manifest.blocks.len div PrefetchBatch
|
||||
batch = max(1, manifest.blocks.len div PrefetchBatch)
|
||||
trace "Prefetching in batches of", batch
|
||||
for blks in manifest.blocks.distribute(batch, true):
|
||||
discard await allFinished(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user