From ad061b5ea3e14b8ce12a9d3e30502b9b6fe930fd Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Fri, 15 Sep 2017 09:56:01 -0400 Subject: [PATCH] use fixed BlobFile type --- lbrynet/core/BlobManager.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lbrynet/core/BlobManager.py b/lbrynet/core/BlobManager.py index 48ee53e24..5834c8c31 100644 --- a/lbrynet/core/BlobManager.py +++ b/lbrynet/core/BlobManager.py @@ -30,7 +30,6 @@ class DiskBlobManager(DHTHashSupplier): self.blob_dir = blob_dir self.db_file = os.path.join(db_dir, "blobs.db") self.db_conn = adbapi.ConnectionPool('sqlite3', self.db_file, check_same_thread=False) - self.blob_type = BlobFile self.blob_creator_type = BlobFileCreator # TODO: consider using an LRU for blobs as there could potentially # be thousands of blobs loaded up, many stale @@ -62,7 +61,7 @@ class DiskBlobManager(DHTHashSupplier): def _make_new_blob(self, blob_hash, length=None): log.debug('Making a new blob for %s', blob_hash) - blob = self.blob_type(self.blob_dir, blob_hash, length) + blob = BlobFile(self.blob_dir, blob_hash, length) self.blobs[blob_hash] = blob return defer.succeed(blob)