File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/service-library/src/servicelib/rabbitmq/rpc_interfaces/storage Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 99from models_library .projects_nodes_io import LocationID
1010from models_library .rabbitmq_basic_types import RPCMethodName
1111from models_library .users import UserID
12+ from pydantic import TypeAdapter
1213
1314from ..._client_rpc import RabbitMQRPCClient
1415from ..async_jobs .async_jobs import submit
@@ -27,7 +28,7 @@ async def compute_path_size(
2728 async_job_rpc_get = await submit (
2829 rabbitmq_rpc_client = client ,
2930 rpc_namespace = STORAGE_RPC_NAMESPACE ,
30- method_name = RPCMethodName ("compute_path_size" ),
31+ method_name = TypeAdapter ( RPCMethodName ). validate_python ("compute_path_size" ),
3132 job_filter = job_filter ,
3233 location_id = location_id ,
3334 path = path ,
@@ -47,7 +48,7 @@ async def delete_paths(
4748 async_job_rpc_get = await submit (
4849 rabbitmq_rpc_client = client ,
4950 rpc_namespace = STORAGE_RPC_NAMESPACE ,
50- method_name = RPCMethodName ("delete_paths" ),
51+ method_name = TypeAdapter ( RPCMethodName ). validate_python ("delete_paths" ),
5152 job_filter = job_filter ,
5253 location_id = location_id ,
5354 paths = paths ,
You can’t perform that action at this time.
0 commit comments