mirror of
https://github.com/gnh1201/caterpillar.git
synced 2024-11-26 15:31:45 +00:00
feat: refactoring typed programing
This commit is contained in:
parent
910e5e4ed5
commit
6b99ee97ce
|
@ -129,7 +129,7 @@ def parse_first_data(data: bytes):
|
|||
|
||||
def conn_string(conn: socket.socket, data: bytes, addr: bytes):
|
||||
# JSON-RPC 2.0 request
|
||||
def process_jsonrpc2(_data):
|
||||
def process_jsonrpc2(_data: bytes):
|
||||
json_data = json.loads(_data.decode(client_encoding, errors="ignore"))
|
||||
if json_data["jsonrpc"] == "2.0":
|
||||
jsonrpc2_server(
|
||||
|
|
Loading…
Reference in New Issue
Block a user