Remove dead code

This commit is contained in:
lash 2022-03-19 02:47:25 +00:00
parent 8130d28e27
commit 045c120439
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,6 @@ class SyncDriver:
while self.running_global:
self.session = SyncSession(self.store)
item = self.session.start()
logg.debug('item {}'.format(item))
if item == None:
self.running = False
self.running_global = False
@ -93,6 +92,7 @@ class SyncDriver:
def loop(self, conn, item):
logg.debug('started loop')
tx_start = item.tx_cursor
while self.running and SyncDriver.running_global:
self.last_start = time.clock_gettime_ns(self.clock_id)
@ -114,6 +114,7 @@ class SyncDriver:
self.process(conn, item, block, tx_start)
except IndexError:
item.next(advance_block=True)
logg.debug('foo')
tx_start = 0
time.sleep(self.yield_delay)
if self.post_callback != None:

View File

@ -9,7 +9,6 @@ class SyncSession:
def __init__(self, session_store):
self.session_store = session_store
self.filters = []
self.started = self.session_store.started
self.get = self.session_store.get
self.next = self.session_store.next_item