Skip to content

Commit c4c4fe8

Browse files
committed
cleanup
1 parent 2eb1918 commit c4c4fe8

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from models_library.projects_nodes_io import LocationID
1010
from models_library.rabbitmq_basic_types import RPCMethodName
1111
from models_library.users import UserID
12+
from pydantic import TypeAdapter
1213

1314
from ..._client_rpc import RabbitMQRPCClient
1415
from ..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,

0 commit comments

Comments
 (0)