Temporarily remove redundant connection in complete_filter, bump version

This commit is contained in:
nolash 2021-02-24 09:32:56 +01:00
parent c599a80a6c
commit 70873e4aec
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
2 changed files with 3 additions and 3 deletions

View File

@ -50,6 +50,8 @@ class SyncerBackend:
if self.db_object == None: if self.db_object == None:
raise ValueError('sync entry with id {} not found'.format(self.object_id)) raise ValueError('sync entry with id {} not found'.format(self.object_id))
return self.db_session
def disconnect(self): def disconnect(self):
"""Commits state of sync to backend. """Commits state of sync to backend.
@ -285,9 +287,7 @@ class SyncerBackend:
def complete_filter(self, n): def complete_filter(self, n):
self.connect()
self.db_object_filter.set(n) self.db_object_filter.set(n)
self.disconnect()

View File

@ -1,6 +1,6 @@
[metadata] [metadata]
name = chainsyncer name = chainsyncer
version = 0.0.1a16 version = 0.0.1a17
description = Generic blockchain syncer driver description = Generic blockchain syncer driver
author = Louis Holbrook author = Louis Holbrook
author_email = dev@holbrook.no author_email = dev@holbrook.no