@@ -71,7 +71,7 @@ def __init__(
71
71
def _validate_nexus_services (
72
72
self , nexus_services : Sequence [Any ]
73
73
) -> dict [str , dict [str , nexusrpc .handler .Operation ]]:
74
- # TODO(dan): Fail if multiple services implement the same service interface .
74
+ # TODO(dan): Fail if multiple services have the same name .
75
75
nexus_services_by_name : dict [str , dict [str , nexusrpc .handler .Operation ]] = {}
76
76
for service in nexus_services :
77
77
defn = nexusrpc .handler .NexusServiceDefinition .from_implementation (service )
@@ -217,11 +217,6 @@ async def _handle_start_operation(
217
217
print (
218
218
f"🟢 Nexus operation { request .operation } started with async response { result } "
219
219
)
220
- # TODO(dan): is it not valid to instantiate proto objects with an argument?
221
- # "When called, it accepts no arguments and returns a new featureless instance
222
- # that has no instance attributes and cannot be given any.""
223
-
224
- # TODO(dan): python proto instantiation
225
220
op_resp = temporalio .api .nexus .v1 .StartOperationResponse (
226
221
async_success = temporalio .api .nexus .v1 .StartOperationResponse .Async (
227
222
operation_token = result .token ,
@@ -243,7 +238,6 @@ async def _handle_start_operation(
243
238
)
244
239
completion = temporalio .bridge .proto .nexus .NexusTaskCompletion (
245
240
task_token = task_token ,
246
- # TODO(dan): python proto instantiation
247
241
completed = temporalio .api .nexus .v1 .Response (start_operation = op_resp ),
248
242
)
249
243
await self ._bridge_worker ().complete_nexus_task (completion )
@@ -269,7 +263,6 @@ async def _handle_cancel_operation(
269
263
# TODO(dan): HandlerError
270
264
completion = temporalio .bridge .proto .nexus .NexusTaskCompletion (
271
265
task_token = task_token ,
272
- # TODO(dan): python proto instantiation
273
266
completed = temporalio .api .nexus .v1 .Response (
274
267
cancel_operation = temporalio .api .nexus .v1 .CancelOperationResponse ()
275
268
),
0 commit comments