Single adapter instantiation
This commit is contained in:
parent
5fc27671da
commit
2fc3d4da0c
@ -83,7 +83,18 @@ signal.signal(signal.SIGTERM, ctrl.shutdown)
|
|||||||
logg.info('session id is ' + settings.get('SESSION_ID'))
|
logg.info('session id is ' + settings.get('SESSION_ID'))
|
||||||
logg.info('session socket path is ' + settings.get('SESSION_SOCKET_PATH'))
|
logg.info('session socket path is ' + settings.get('SESSION_SOCKET_PATH'))
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
global dispatcher, settings
|
||||||
|
|
||||||
|
queue_adapter = ChaindFsAdapter(
|
||||||
|
settings.get('CHAIN_SPEC'),
|
||||||
|
settings.dir_for('queue'),
|
||||||
|
EthCacheTx,
|
||||||
|
dispatcher,
|
||||||
|
store_sync=False,
|
||||||
|
)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
v = None
|
v = None
|
||||||
client_socket = None
|
client_socket = None
|
||||||
@ -100,16 +111,9 @@ def main():
|
|||||||
|
|
||||||
if v == None:
|
if v == None:
|
||||||
ctrl.process(conn)
|
ctrl.process(conn)
|
||||||
|
#queue_adapter = create_adapter(settings, dispatcher)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
queue_adapter = ChaindFsAdapter(
|
|
||||||
settings.get('CHAIN_SPEC'),
|
|
||||||
settings.dir_for('queue'),
|
|
||||||
EthCacheTx,
|
|
||||||
dispatcher,
|
|
||||||
store_sync=False,
|
|
||||||
)
|
|
||||||
|
|
||||||
result_data = None
|
result_data = None
|
||||||
r = 0 # no error
|
r = 0 # no error
|
||||||
try:
|
try:
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
chaind~=0.2.7
|
chaind~=0.2.10
|
||||||
hexathon~=0.1.6
|
hexathon~=0.1.6
|
||||||
chainlib-eth~=0.1.2
|
chainlib-eth~=0.1.2
|
||||||
pyxdg~=0.27
|
pyxdg~=0.27
|
||||||
shep~=0.2.5
|
|
||||||
funga-eth~=0.6.1
|
funga-eth~=0.6.1
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = chaind-eth
|
name = chaind-eth
|
||||||
version = 0.2.6
|
version = 0.2.9
|
||||||
description = Queue server for ethereum
|
description = Queue server for ethereum
|
||||||
author = Louis Holbrook
|
author = Louis Holbrook
|
||||||
author_email = dev@holbrook.no
|
author_email = dev@holbrook.no
|
||||||
|
Loading…
Reference in New Issue
Block a user