From 7bfd14d23c4a73c9539281d65f880fd894ce63d3 Mon Sep 17 00:00:00 2001 From: chakcy <947105045@qq.com> Date: Fri, 14 Aug 2026 16:31:36 +0800 Subject: [PATCH] =?UTF-8?q?modify:=20=E7=A7=BB=E9=99=A4=20add=5Fpost=20?= =?UTF-8?q?=E8=B0=83=E8=AF=95=20print?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/router/add.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/example/router/add.py b/example/router/add.py index c93d14c..cc97e63 100644 --- a/example/router/add.py +++ b/example/router/add.py @@ -34,10 +34,8 @@ async def add(add_get_request:AddGetRequest) -> AddGetResponse: ) async def add_post(add_post_request: AddPostRequest, session: zenoh.Session, user_info: dict | None = None) -> AddPostResponse: """加法运算(POST)— 通过 JSON Body 传入 a、b,返回它们的和""" - print("----------user_info-----------") - print(user_info) async with Client(session=session) as client: - add_result = await client.call( + await client.call( worker_type="example", subject="example.add", payload={ @@ -46,7 +44,6 @@ async def add_post(add_post_request: AddPostRequest, session: zenoh.Session, use }, method="GET" ) - print(add_result) return AddPostResponse( result=add_post_request.a + add_post_request.b, operation="add",