Skip to content

Commit 20884ce

Browse files
kthuinnshah1
authored andcommitted
fix: Example hello_world.py Context naming (#2833)
Signed-off-by: nnshah1 <neelays@nvidia.com>
1 parent 1b9f4f4 commit 20884ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/runtime/hello_world/hello_world.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818

1919
import uvloop
2020

21-
from dynamo.runtime import DistributedRuntime, PyContext, dynamo_endpoint, dynamo_worker
21+
from dynamo.runtime import Context, DistributedRuntime, dynamo_endpoint, dynamo_worker
2222
from dynamo.runtime.logging import configure_dynamo_logging
2323

2424
logger = logging.getLogger(__name__)
2525
configure_dynamo_logging(service_name="backend")
2626

2727

2828
@dynamo_endpoint(str, str)
29-
async def content_generator(request: str, context: PyContext):
29+
async def content_generator(request: str, context: Context):
3030
logger.info(f"Received request: {request} with `id={context.id()}`")
3131
for word in request.split(","):
3232
await asyncio.sleep(1)

0 commit comments

Comments
 (0)