Skip to content

Commit 4e75962

Browse files
committed
Cleanup
1 parent e0c7ce8 commit 4e75962

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

hello_nexus/handler/nexus_service.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class EchoOperation(nexusrpc.handler.Operation[EchoInput, EchoOutput]):
4141
def __init__(self, service: MyNexusService):
4242
self.service = service
4343

44+
# TODO support non-async def
4445
async def start(
4546
self, input: EchoInput, options: nexusrpc.handler.StartOperationOptions
4647
) -> EchoOutput:

hello_nexus/handler/worker.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111

1212

1313
async def main():
14-
client = await Client.connect("localhost:7233", namespace="my-target-namespace-python")
14+
client = await Client.connect(
15+
"localhost:7233", namespace="my-target-namespace-python"
16+
)
1517
task_queue = "my-target-task-queue-python"
1618

1719
async with Worker(

0 commit comments

Comments
 (0)