Skip to content

Commit

Permalink
fix message
Browse files Browse the repository at this point in the history
  • Loading branch information
mycognosist committed Feb 12, 2024
1 parent 508b799 commit 048b83b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solar/src/actors/jsonrpc/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,13 +416,13 @@ pub async fn actor(server_id: OwnedIdentity, server_addr: SocketAddr) -> Result<
rpc_module.register_method("message", move |params: Params, _| {
task::block_on(async {
// Parse the parameter containing the message reference (key).
let msg_ref: MsgRef = params.parse()?;
let msg_ref = params.parse::<Vec<String>>()?;

// Open the primary KV database for reading.
let db = KV_STORE.read().await;

// Retrieve the message value for the requested message.
let msg_val = db.get_msg_val(&msg_ref.0)?;
let msg_val = db.get_msg_val(&msg_ref[0])?;

// Retrieve the message KVT for the requested message using the
// author and sequence fields from the message value.
Expand Down

0 comments on commit 048b83b

Please sign in to comment.