forked from LBRYCommunity/lbry-sdk
remove dead set_should_announce code
This commit is contained in:
parent
2c275efa48
commit
7b8f42e6d0
2 changed files with 0 additions and 9 deletions
|
@ -59,9 +59,6 @@ class BlobFileManager:
|
||||||
blobs = [self.get_blob(b) for b in blob_hashes]
|
blobs = [self.get_blob(b) for b in blob_hashes]
|
||||||
return [blob.blob_hash for blob in blobs if blob.get_is_verified()]
|
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]:
|
async def get_all_verified_blobs(self) -> typing.List[str]:
|
||||||
blob_hashes = await self.storage.get_all_blob_hashes()
|
blob_hashes = await self.storage.get_all_blob_hashes()
|
||||||
return self.check_completed_blobs(blob_hashes)
|
return self.check_completed_blobs(blob_hashes)
|
||||||
|
|
|
@ -208,12 +208,6 @@ class SQLiteStorage(SQLiteMixin):
|
||||||
log.debug("Adding a completed blob. blob_hash=%s", blob_hash)
|
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, ))
|
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):
|
def get_blob_status(self, blob_hash: str):
|
||||||
return self.run_and_return_one_or_none(
|
return self.run_and_return_one_or_none(
|
||||||
"select status from blob where blob_hash=?", blob_hash
|
"select status from blob where blob_hash=?", blob_hash
|
||||||
|
|
Loading…
Add table
Reference in a new issue