Skip to content

Commit

Permalink
remove unnecessary structs
Browse files Browse the repository at this point in the history
  • Loading branch information
mycognosist committed Feb 12, 2024
1 parent 048b83b commit e8f535f
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions solar/src/actors/jsonrpc/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,10 @@ use jsonrpsee::server::{logger::Params, RpcModule, ServerBuilder};
use jsonrpsee::types::error::ErrorObject as JsonRpcError;
use kuska_ssb::{api::dto::content::TypedMessage, feed::Message, keystore::OwnedIdentity};
use log::{info, warn};
use serde::Deserialize;
use serde_json::{json, Value};

use crate::{broker::*, error::Error, node::KV_STORE, Result};

/// The name of a channel.
#[derive(Debug, Deserialize)]
struct Channel(String);

/// Message reference containing the key (sha256 hash) of a message.
/// Used to parse the key from the parameters supplied to the `message`
/// endpoint.
#[derive(Debug, Deserialize)]
struct MsgRef(String);

/// The public key (ID) of a peer.
#[derive(Debug, Deserialize)]
struct PubKey(String);

/// Register the JSON-RPC server endpoint, define the JSON-RPC methods
/// and spawn the server.
///
Expand Down

0 comments on commit e8f535f

Please sign in to comment.