accidentally deleted stuff

This commit is contained in:
geemo 2023-03-01 21:16:21 -06:00
parent a740cb656f
commit c2237668ea
2 changed files with 4 additions and 4 deletions

View File

@ -213,7 +213,7 @@ impl ClientBuilder {
} }
pub struct Client<DB: Database, N: ConsensusNetworkInterface> { pub struct Client<DB: Database, N: ConsensusNetworkInterface> {
node: Node<N>, node: Arc<RwLock<Node<N>>>,
#[cfg(not(target_arch = "wasm32"))] #[cfg(not(target_arch = "wasm32"))]
rpc: Option<Rpc<N>>, rpc: Option<Rpc<N>>,
db: DB, db: DB,

View File

@ -23,13 +23,13 @@ use common::{
use execution::types::{CallOpts, ExecutionBlock}; use execution::types::{CallOpts, ExecutionBlock};
pub struct Rpc<N: ConsensusNetworkInterface> { pub struct Rpc<N: ConsensusNetworkInterface> {
node: Node<N>, node: Arc<RwLock<Node<N>>>,
handle: Option<HttpServerHandle>, handle: Option<HttpServerHandle>,
port: u16, port: u16,
} }
impl<N: ConsensusNetworkInterface> Rpc<N> { impl<N: ConsensusNetworkInterface> Rpc<N> {
pub fn new(node: Node<N>, port: u16) -> Self { pub fn new(node: Arc<RwLock<Node<N>>>, port: u16) -> Self {
Rpc { Rpc {
node, node,
handle: None, handle: None,
@ -126,7 +126,7 @@ trait NetRpc {
} }
struct RpcInner<N: ConsensusNetworkInterface> { struct RpcInner<N: ConsensusNetworkInterface> {
node: Node<N>, node: Arc<RwLock<Node<N>>>,
port: u16, port: u16,
} }