mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-21 08:31:52 +03:00
avoid responding to an ack (#12251)
This commit is contained in:
parent
c699a2a20e
commit
ef6359638f
@ -207,14 +207,14 @@ class RpcServer:
|
||||
"success": "true",
|
||||
}
|
||||
|
||||
async def ws_api(self, message: WsRpcMessage) -> Dict[str, object]:
|
||||
async def ws_api(self, message: WsRpcMessage) -> Optional[Dict[str, object]]:
|
||||
"""
|
||||
This function gets called when new message is received via websocket.
|
||||
"""
|
||||
|
||||
command = message["command"]
|
||||
if message["ack"]:
|
||||
return {}
|
||||
return None
|
||||
|
||||
data: Dict[str, object] = {}
|
||||
if "data" in message:
|
||||
|
Loading…
Reference in New Issue
Block a user