Skip to content

Commit

Permalink
rename to RcpServer
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy committed Sep 10, 2024
1 parent f3466c8 commit 60fb570
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/katana/node/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub struct Node {
pub backend: Arc<Backend<BlockifierFactory>>,
pub block_producer: Arc<BlockProducer<BlockifierFactory>>,
pub pool: TxPool,
pub rpc: RpcServerHandle,
pub rpc: RpcServer,
}

/// Build the core Katana components from the given configurations and start running the node.
Expand Down Expand Up @@ -229,7 +229,7 @@ pub async fn start(
pub async fn spawn<EF: ExecutorFactory>(
node_components: (TxPool, Arc<Backend<EF>>, Arc<BlockProducer<EF>>, TxValidator),
config: ServerConfig,
) -> Result<RpcServerHandle> {
) -> Result<RpcServer> {
let (pool, backend, block_producer, validator) = node_components;

let mut methods = RpcModule::new(());
Expand Down Expand Up @@ -299,11 +299,11 @@ pub async fn spawn<EF: ExecutorFactory>(
let addr = server.local_addr()?;
let handle = server.start(methods)?;

Ok(RpcServerHandle { handle, addr })
Ok(RpcServer { handle, addr })
}

#[derive(Debug)]
pub struct RpcServerHandle {
pub struct RpcServer {
pub addr: SocketAddr,
pub handle: ServerHandle,
}

0 comments on commit 60fb570

Please sign in to comment.