From 40293c03b15ffcf7f752a2413f7c78dc93259ad0 Mon Sep 17 00:00:00 2001 From: Ash Beitz <8304894+ashbeitz@users.noreply.github.com> Date: Mon, 6 May 2024 11:08:09 -0700 Subject: [PATCH] Digital Twin Graph --- core/module/digital_twin_graph/src/digital_twin_graph_impl.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/module/digital_twin_graph/src/digital_twin_graph_impl.rs b/core/module/digital_twin_graph/src/digital_twin_graph_impl.rs index 8fabf9a6..0a56d0ae 100644 --- a/core/module/digital_twin_graph/src/digital_twin_graph_impl.rs +++ b/core/module/digital_twin_graph/src/digital_twin_graph_impl.rs @@ -98,7 +98,7 @@ impl DigitalTwinGraphImpl { client.find_by_model_id(request).await.map_err(|error| error.to_string()) }) .await - .map_err(|error| tonic::Status::internal(error))? + .map_err(tonic::Status::internal)? .into_inner(); Ok(response @@ -144,7 +144,7 @@ impl DigitalTwinGraphImpl { client.find_by_instance_id(request).await.map_err(|error| error.to_string()) }) .await - .map_err(|error| tonic::Status::internal(error))? + .map_err(tonic::Status::internal)? .into_inner(); Ok(response