mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-08-10 23:50:31 -04:00
Make VeilidAPI::parse_as_target a sync function
VeilidAPI::parse_as_target doesn't perform any async operations so it should be a sync function.
This commit is contained in:
parent
9d3ee579d3
commit
b5cf325c5a
4 changed files with 7 additions and 7 deletions
|
@ -568,7 +568,7 @@ pub extern "C" fn routing_context_app_call(port: i64, id: u32, target: FfiStr, r
|
|||
let routing_context = get_routing_context(id, "routing_context_app_call")?;
|
||||
|
||||
let veilid_api = get_veilid_api().await?;
|
||||
let target = veilid_api.parse_as_target(target_string).await?;
|
||||
let target = veilid_api.parse_as_target(target_string)?;
|
||||
let answer = routing_context.app_call(target, request).await?;
|
||||
let answer = data_encoding::BASE64URL_NOPAD.encode(&answer);
|
||||
APIResult::Ok(answer)
|
||||
|
@ -585,7 +585,7 @@ pub extern "C" fn routing_context_app_message(port: i64, id: u32, target: FfiStr
|
|||
let routing_context = get_routing_context(id, "routing_context_app_message")?;
|
||||
|
||||
let veilid_api = get_veilid_api().await?;
|
||||
let target = veilid_api.parse_as_target(target_string).await?;
|
||||
let target = veilid_api.parse_as_target(target_string)?;
|
||||
routing_context.app_message(target, message).await?;
|
||||
APIRESULT_VOID
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue