Commit 22e98725 authored by litaolemo's avatar litaolemo

update

parent febf2371
......@@ -44,12 +44,9 @@ def post_data(data_dict:typing.Dict,rpc_type:str) -> typing.Dict:
if key not in data_type_dict[rpc_type]:
data_dict.pop(key)
print(data_dict)
data = {
'requests': '[{"params": {"replies": [{%s}]}, "method": "%s, "timeout": 120}]' % (str(data_dict),rpc_type)
}
invoker = create_default_invoker(debug=True).with_config(dump_curl=True)
res = await invoker[rpc_type](**data_dict)
res = invoker[rpc_type](**data_dict)
print(res.success)
print(res.unwrap())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment