From 7b8f42e6d0e0b17808f1d17829a052bd7a5c7bbf Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Tue, 5 Feb 2019 01:09:16 -0300 Subject: [PATCH] remove dead set_should_announce code --- lbrynet/blob/blob_manager.py | 3 --- lbrynet/extras/daemon/storage.py | 6 ------ 2 files changed, 9 deletions(-) diff --git a/lbrynet/blob/blob_manager.py b/lbrynet/blob/blob_manager.py index 27ed58d0d..44d8fa8b5 100644 --- a/lbrynet/blob/blob_manager.py +++ b/lbrynet/blob/blob_manager.py @@ -59,9 +59,6 @@ class BlobFileManager: blobs = [self.get_blob(b) for b in blob_hashes] return [blob.blob_hash for blob in blobs if blob.get_is_verified()] - async def set_should_announce(self, blob_hash: str, should_announce: int): - return await self.storage.set_should_announce(blob_hash, should_announce) - async def get_all_verified_blobs(self) -> typing.List[str]: blob_hashes = await self.storage.get_all_blob_hashes() return self.check_completed_blobs(blob_hashes) diff --git a/lbrynet/extras/daemon/storage.py b/lbrynet/extras/daemon/storage.py index 0a0359841..48364393f 100644 --- a/lbrynet/extras/daemon/storage.py +++ b/lbrynet/extras/daemon/storage.py @@ -208,12 +208,6 @@ class SQLiteStorage(SQLiteMixin): log.debug("Adding a completed blob. blob_hash=%s", blob_hash) return self.db.execute("update blob set status='finished' where blob.blob_hash=?", (blob_hash, )) - def set_should_announce(self, blob_hash: str, should_announce: int): - return self.db.execute( - "update blob set next_announce_time=?, should_announce=? where blob_hash=?", - (int(self.time_getter()), should_announce, blob_hash) - ) - def get_blob_status(self, blob_hash: str): return self.run_and_return_one_or_none( "select status from blob where blob_hash=?", blob_hash