From e2a75758f83ee23902854da2130b8fe464793546 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Fri, 21 Jan 2022 11:34:24 -0500 Subject: [PATCH] delete unused code --- lbry/wallet/server/block_processor.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lbry/wallet/server/block_processor.py b/lbry/wallet/server/block_processor.py index 3661bb977..27379be86 100644 --- a/lbry/wallet/server/block_processor.py +++ b/lbry/wallet/server/block_processor.py @@ -1594,16 +1594,6 @@ class BlockProcessor: finally: self._ready_to_stop.set() - async def _es_caught_up(self): - self.db.es_sync_height = self.height - - def flush(): - assert len(self.db.prefix_db._op_stack) == 0 - self.db.write_db_state() - self.db.prefix_db.unsafe_commit() - self.db.assert_db_state() - - await self.run_in_thread_with_lock(flush) async def _first_caught_up(self): self.logger.info(f'caught up to height {self.height}')