Skip to content
Snippets Groups Projects
Commit 02bc69f9 authored by Moul's avatar Moul
Browse files

[mod] diffi: Remove useless await/async for the display

parent ae9b3b99
No related branches found
No related tags found
No related merge requests found
Pipeline #10440 passed
......@@ -101,7 +101,7 @@ async def difficulties():
current = await ws.receive_json()
jsonschema.validate(current, bma.ws.WS_BLOCK_SCHEMA)
diffi = await client(bma.blockchain.difficulties)
await display_diffi(current, diffi)
display_diffi(current, diffi)
await client.close()
except (aiohttp.WSServerHandshakeError, ValueError) as e:
......@@ -112,7 +112,7 @@ async def difficulties():
print("{:}:{:}".format(str(e.__class__.__name__), str(e)))
async def display_diffi(current, diffi):
def display_diffi(current, diffi):
levels = [OrderedDict((i, d[i]) for i in ("uid", "level")) for d in diffi["levels"]]
diffi["levels"] = levels
issuers = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment