mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-08-25 11:21:12 +00:00
refactor(rpc_server): move service into actor submodule
This commit is contained in:
@@ -10,6 +10,8 @@ use tokio::select;
|
||||
|
||||
use crate::{Result, error::Error};
|
||||
|
||||
mod service;
|
||||
|
||||
const REQUEST_BODY_MAX_SIZE: ByteSize = ByteSize::mib(10);
|
||||
|
||||
pub struct RpcServerActor {
|
||||
@@ -41,7 +43,7 @@ impl RpcServerActor {
|
||||
|
||||
info!("Starting RPC Server on {addr}");
|
||||
|
||||
let service = crate::service::Service::new(executor_ref, max_block_size);
|
||||
let service = service::Service::new(executor_ref, max_block_size);
|
||||
let server_handle = server.start(service.into_rpc());
|
||||
|
||||
Ok(Self {
|
||||
|
||||
@@ -4,6 +4,5 @@ pub use actor::RpcServerActor;
|
||||
|
||||
pub mod actor;
|
||||
pub mod error;
|
||||
mod service;
|
||||
|
||||
pub type Result<T> = std::result::Result<T, error::Error>;
|
||||
|
||||
Reference in New Issue
Block a user