remove redundant calls to should announce

This commit is contained in:
Victor Shyba 2019-02-05 01:07:56 -03:00
parent 30846f932b
commit 2c275efa48

View file

@ -160,8 +160,6 @@ class ManagedStream:
await blob_manager.blob_completed(sd_blob) await blob_manager.blob_completed(sd_blob)
for blob in descriptor.blobs[:-1]: for blob in descriptor.blobs[:-1]:
await blob_manager.blob_completed(blob_manager.get_blob(blob.blob_hash, blob.length)) await blob_manager.blob_completed(blob_manager.get_blob(blob.blob_hash, blob.length))
await blob_manager.set_should_announce(sd_blob.blob_hash, 1)
await blob_manager.set_should_announce(descriptor.blobs[0].blob_hash, 1)
return cls(loop, blob_manager, descriptor, os.path.dirname(file_path), os.path.basename(file_path), return cls(loop, blob_manager, descriptor, os.path.dirname(file_path), os.path.basename(file_path),
status=cls.STATUS_FINISHED) status=cls.STATUS_FINISHED)