mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-12-19 14:41:42 +03:00
Updated to use new type names
This commit is contained in:
parent
62ea69c3e3
commit
3d72a84ba9
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user