stop after finding what to download

This commit is contained in:
Victor Shyba 2022-02-22 15:54:39 -03:00
parent 838fd71538
commit aa7a17b112

View file

@ -423,6 +423,7 @@ class BackgroundDownloaderComponent(Component):
continue
if utils.get_colliding_prefix_bits(node_id, blob_hash, 32) >= self.MIN_PREFIX_COLLIDING_BITS:
self.ongoing_download = asyncio.create_task(self.background_downloader.download_blobs(blob_hash.hex()))
return
async def start(self):
self.space_manager: DiskSpaceManager = self.component_manager.get_component(DISK_SPACE_COMPONENT)