From 6f3069b90c35a38aabbbf6662e29c61380321da4 Mon Sep 17 00:00:00 2001 From: nolash Date: Wed, 14 Jul 2021 23:17:32 +0200 Subject: [PATCH] Typo in session --- apps/cic-eth/cic_eth/runnable/daemons/dispatcher.py | 2 +- apps/cic-eth/tests/task/test_task_address.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/cic-eth/cic_eth/runnable/daemons/dispatcher.py b/apps/cic-eth/cic_eth/runnable/daemons/dispatcher.py index 981d36b2..7e22e911 100644 --- a/apps/cic-eth/cic_eth/runnable/daemons/dispatcher.py +++ b/apps/cic-eth/cic_eth/runnable/daemons/dispatcher.py @@ -108,7 +108,7 @@ class DispatchSyncer: tx = unpack(tx_raw_bytes, self.chain_spec) try: - set_reserved(self.chain_spec, tx['hash'], session=session) + set_reserved(self.chain_spec, tx['hash'], session=self.session) self.session.commit() except NotLocalTxError as e: logg.warning('dispatcher was triggered with non-local tx {}'.format(tx['hash'])) diff --git a/apps/cic-eth/tests/task/test_task_address.py b/apps/cic-eth/tests/task/test_task_address.py index 550cbac0..fbcce337 100644 --- a/apps/cic-eth/tests/task/test_task_address.py +++ b/apps/cic-eth/tests/task/test_task_address.py @@ -21,7 +21,7 @@ def test_translate( cic_registry, init_celery_tasks, register_lookups, - celery_worker, + celery_session_worker, ): nonce_oracle = RPCNonceOracle(contract_roles['CONTRACT_DEPLOYER'], eth_rpc)