accidentally deleted stuff
This commit is contained in:
parent
a740cb656f
commit
c2237668ea
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue