feat(server): boot mechanism

This commit is contained in:
hdbg
2026-02-14 23:44:37 +01:00
parent a6c849f268
commit 8263bc6b6f
6 changed files with 81 additions and 15 deletions

View File

@@ -15,8 +15,8 @@ use crate::{
};
pub mod actors;
mod context;
mod db;
pub mod context;
pub mod db;
mod errors;
const DEFAULT_CHANNEL_SIZE: usize = 1000;
@@ -25,6 +25,12 @@ pub struct Server {
context: ServerContext,
}
impl Server {
pub fn new(context: ServerContext) -> Self {
Self { context }
}
}
#[async_trait]
impl arbiter_proto::proto::arbiter_service_server::ArbiterService for Server {
type UserAgentStream = ReceiverStream<Result<UserAgentResponse, Status>>;