Skip to content

Commit 0ebfb6c

Browse files
committed
@GitHK use TypeAdapter
1 parent 43b018e commit 0ebfb6c

File tree

1 file changed

+1
-3
lines changed
  • packages/service-library/src/servicelib/rabbitmq/rpc_interfaces/storage

1 file changed

+1
-3
lines changed

packages/service-library/src/servicelib/rabbitmq/rpc_interfaces/storage/data_export.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,14 @@
99
from ... import RabbitMQRPCClient
1010
from ..async_jobs.async_jobs import submit_job
1111

12-
_RPC_METHOD_NAME_ADAPTER = TypeAdapter(RPCMethodName)
13-
1412

1513
async def start_data_export(
1614
rabbitmq_rpc_client: RabbitMQRPCClient, *, job_id_data: AsyncJobNameData, **kwargs
1715
) -> AsyncJobGet:
1816
return await submit_job(
1917
rabbitmq_rpc_client,
2018
rpc_namespace=STORAGE_RPC_NAMESPACE,
21-
method_name=_RPC_METHOD_NAME_ADAPTER.validate_python("start_data_export"),
19+
method_name=TypeAdapter(RPCMethodName).validate_python("start_data_export"),
2220
job_id_data=job_id_data,
2321
**kwargs,
2422
)

0 commit comments

Comments
 (0)