mmgen-cli: support aiohttp backend
This commit is contained in:
parent
aedf230c30
commit
00c8ba38e5
1 changed files with 3 additions and 2 deletions
|
|
@ -12,8 +12,9 @@
|
|||
mmgen-cli: Communicate with a coin daemon via its JSON-RPC interface
|
||||
"""
|
||||
|
||||
import asyncio, json
|
||||
import json
|
||||
|
||||
from .util import async_run
|
||||
from .util2 import cliargs_convert
|
||||
from .cfg import gc, Config
|
||||
from .rpc import rpc_init
|
||||
|
|
@ -72,4 +73,4 @@ async def main():
|
|||
(ascii(ret) if cfg.ascii_output else ret) if isinstance(ret, str) else
|
||||
json.dumps(ret, cls=json_encoder, indent=4, ensure_ascii=cfg.ascii_output))
|
||||
|
||||
asyncio.run(main())
|
||||
async_run(cfg, main)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue