Skip to content

Commit 58745c7

Browse files
committed
remove useless sleep
1 parent cae32e2 commit 58745c7

File tree

1 file changed

+0
-4
lines changed
  • examples/servers/simple-streamablehttp-stateless/mcp_simple_streamablehttp_stateless

1 file changed

+0
-4
lines changed

examples/servers/simple-streamablehttp-stateless/mcp_simple_streamablehttp_stateless/server.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,6 @@ async def run_server():
148148
# Start server task
149149
task_group.start_soon(run_server)
150150

151-
# Small delay to allow the server task to start
152-
# This helps prevent race conditions in stateless mode
153-
await anyio.sleep(0.001)
154-
155151
# Handle the HTTP request and return the response
156152
await http_transport.handle_request(scope, receive, send)
157153

0 commit comments

Comments
 (0)