stop after finding what to download

This commit is contained in:
Victor Shyba 2022-02-22 15:54:39 -03:00 committed by Victor Shyba
parent ca65c1ebc5
commit 8019f4bdb3

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)