refactor(rpc_server): move service into actor submodule

This commit is contained in:
Daniil Polyakov
2026-08-12 22:50:50 +03:00
parent 59a2c495d2
commit c75eecc0fb
3 changed files with 3 additions and 2 deletions
+3 -1
View File
@@ -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>;