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 { message: Message::Request(Request {
inherit: false, inherit: false,
expects_response: None, expects_response: None,
ipc: serde_json::json!({ ipc: serde_json::json!(
"GetKeyAction": { EncryptorMessage::GetKey(
"channel_id": channel_id, GetKeyAction {
"public_key_hex": public_key_hex, channel_id: channel_id.to_string(),
} public_key_hex: public_key_hex.to_string(),
}) }
)
)
.to_string() .to_string()
.into_bytes(), .into_bytes(),
metadata: None, metadata: None,

View File

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