fix running
This commit is contained in:
parent
43e211c0f8
commit
3f5946c43c
3
main.py
3
main.py
|
@ -56,7 +56,6 @@ def receive(method: str, address: str, callback: Union[str, None] = None):
|
||||||
else:
|
else:
|
||||||
callback = 'None'
|
callback = 'None'
|
||||||
callback_req_n = 0
|
callback_req_n = 0
|
||||||
|
|
||||||
|
|
||||||
## RPC connection to Demons
|
## RPC connection to Demons
|
||||||
match method.upper():
|
match method.upper():
|
||||||
|
@ -128,5 +127,5 @@ def receive(method: str, address: str, callback: Union[str, None] = None):
|
||||||
|
|
||||||
# Run
|
# Run
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
uvicorn.run('main:app', host='0.0.0.0', reload=True, debug=True)
|
uvicorn.run('main:app', host='0.0.0.0', reload=True)
|
||||||
#workers=4 (doesn't work with reload)
|
#workers=4 (doesn't work with reload)
|
Loading…
Reference in New Issue