Updated to use new type names

This commit is contained in:
Will Galebach 2023-11-17 17:09:56 +00:00
parent 62ea69c3e3
commit 3d72a84ba9
2 changed files with 22 additions and 18 deletions

View File

@ -824,12 +824,14 @@ async fn handler(
message: Message::Request(Request {
inherit: false,
expects_response: None,
ipc: serde_json::json!({
"GetKeyAction": {
"channel_id": channel_id,
"public_key_hex": public_key_hex,
ipc: serde_json::json!(
EncryptorMessage::GetKey(
GetKeyAction {
channel_id: channel_id.to_string(),
public_key_hex: public_key_hex.to_string(),
}
})
)
)
.to_string()
.into_bytes(),
metadata: None,

View File

@ -395,18 +395,20 @@ pub async fn handle_encrypted_ws_message(
message: Message::Request(Request {
inherit: false,
expects_response: None,
ipc: serde_json::json!({
"DecryptAndForwardAction": {
"channel_id": channel_id.clone(),
"forward_to": target.clone(),
"json": {
ipc: serde_json::json!(
EncryptorMessage::DecryptAndForward(
DecryptAndForwardAction {
channel_id: channel_id.clone(),
forward_to: target.clone(),
json: Some(serde_json::json!({
"forwarded_from": {
"node": our.clone(),
"process": "http_server:sys:uqbar",
}
},
})),
}
})
)
)
.to_string()
.into_bytes(),
metadata: None,