Merge pull request #2384 from lbryio/faster_file_list

Faster file list
This commit is contained in:
Jack Robison 2019-08-11 22:41:15 -04:00 committed by GitHub
commit 79d643db6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -179,7 +179,7 @@ class ManagedStream:
@property @property
def blobs_completed(self) -> int: def blobs_completed(self) -> int:
return sum([1 if self.blob_manager.is_blob_verified(b.blob_hash) else 0 return sum([1 if b.blob_hash in self.blob_manager.completed_blob_hashes else 0
for b in self.descriptor.blobs[:-1]]) for b in self.descriptor.blobs[:-1]])
@property @property