File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 18
18
19
19
import google .protobuf .json_format
20
20
import nexusrpc .handler
21
- from nexusrpc .handler ._core import SyncExecutor
21
+ from nexusrpc .asyncio import LazyValue
22
+ from nexusrpc .asyncio .handler import Handler
23
+ from nexusrpc .handler import SyncExecutor
22
24
23
25
import temporalio .api .common .v1
24
26
import temporalio .api .enums .v1
@@ -64,7 +66,7 @@ def __init__(
64
66
f"Expected a service instance, but got a class: { service } . "
65
67
"Nexus services must be passed as instances, not classes."
66
68
)
67
- self ._handler = nexusrpc . handler . Handler (
69
+ self ._handler = Handler (
68
70
nexus_services ,
69
71
SyncExecutor (executor ) if executor is not None else None ,
70
72
)
@@ -275,7 +277,7 @@ async def _start_operation(
275
277
temporalio .nexus .current_context .set (
276
278
temporalio .nexus .Context (operation_context = ctx )
277
279
)
278
- input = nexusrpc . handler . LazyValue (
280
+ input = LazyValue (
279
281
serializer = _DummyPayloadSerializer (
280
282
data_converter = self ._data_converter ,
281
283
payload = start_request .payload ,
You can’t perform that action at this time.
0 commit comments