Skip to content

Commit

Permalink
fmt dont break on subscription exit
Browse files Browse the repository at this point in the history
  • Loading branch information
makemake-kbo committed Jan 8, 2024
1 parent ffeb6e6 commit db64ec3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hrotti/websocket_manager.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import asyncio
import json
import random
import asyncio

from fastapi import WebSocket

Expand Down Expand Up @@ -63,7 +63,6 @@ async def fake_subscribe(sub_request: RPCRequest, websocket: WebSocket):
local_fake_head["params"]["result"]["number"] = hex(block_num)
await websocket.send_json(local_fake_head)
await asyncio.sleep(6)
break


# Proceses WS connection
Expand Down

0 comments on commit db64ec3

Please sign in to comment.