chainsyncer

Blockchain syncer driver
Log | Files | Refs | LICENSE

commit 70873e4aecae393be416510b91585d8c2548b0db
parent c599a80a6c9dabf8a8d8c6dbbbd1f03776dff8c5
Author: nolash <dev@holbrook.no>
Date:   Wed, 24 Feb 2021 09:32:56 +0100

Temporarily remove redundant connection in complete_filter, bump version

Diffstat:
Mchainsyncer/backend.py | 4++--
Msetup.cfg | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/chainsyncer/backend.py b/chainsyncer/backend.py @@ -50,6 +50,8 @@ class SyncerBackend: if self.db_object == None: raise ValueError('sync entry with id {} not found'.format(self.object_id)) + return self.db_session + def disconnect(self): """Commits state of sync to backend. @@ -285,9 +287,7 @@ class SyncerBackend: def complete_filter(self, n): - self.connect() self.db_object_filter.set(n) - self.disconnect() diff --git a/setup.cfg b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = chainsyncer -version = 0.0.1a16 +version = 0.0.1a17 description = Generic blockchain syncer driver author = Louis Holbrook author_email = dev@holbrook.no