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 {
|
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,
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user