Skip to content

Commit

Permalink
[GraphProxy] adapt to GRIN v0.1.4
Browse files Browse the repository at this point in the history
Committed-by: bingqing.lbq from Dev container
  • Loading branch information
BingqingLyu committed Nov 20, 2023
1 parent 09b6224 commit 66d87bf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fn get_vertex_property_as_object(
} else if prop_type == GRIN_DATATYPE_STRING {
let c_str = grin_get_vertex_property_value_of_string(graph, vertex, prop_handle).into();
let rust_str = string_c2rust(c_str);
grin_destroy_string_value(graph, c_str);
grin_destroy_vertex_property_value_of_string(graph, c_str);
Ok(Object::String(rust_str))
} else if prop_type == GRIN_DATATYPE_UNDEFINED {
Err(GraphProxyError::QueryStoreError("`grin_data_type is undefined`".to_string()))
Expand Down Expand Up @@ -98,7 +98,7 @@ fn get_edge_property_as_object(
} else if prop_type == GRIN_DATATYPE_STRING {
let c_str = grin_get_edge_property_value_of_string(graph, edge, prop_handle).into();
let rust_str = string_c2rust(c_str);
grin_destroy_string_value(graph, c_str);
grin_destroy_vertex_property_value_of_string(graph, c_str);
Ok(Object::String(rust_str))
} else if prop_type == GRIN_DATATYPE_UNDEFINED {
Err(GraphProxyError::QueryStoreError("`grin_data_type is undefined`".to_string()))
Expand Down

0 comments on commit 66d87bf

Please sign in to comment.