From 73be69cd99f5a4784fe69f5d78f423c72e837284 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Mon, 20 Jul 2026 12:57:36 +0200 Subject: chore: Commit --- crates/daemon/src/control/mod.rs | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'crates/daemon/src/control/mod.rs') diff --git a/crates/daemon/src/control/mod.rs b/crates/daemon/src/control/mod.rs index fcc2a0b8..f727a3a2 100644 --- a/crates/daemon/src/control/mod.rs +++ b/crates/daemon/src/control/mod.rs @@ -7,15 +7,13 @@ use tonic::{Request, Response, Status}; use tracing::{Level, info, instrument}; use crate::{ - atuin_client::history::HistoryId, - atuin_daemon::{ - daemon::DaemonHandle, - events::DaemonEvent, - generated::control::{ - SendEventRequest, SendEventResponse, - control_server::{Control, ControlServer}, - send_event_request::Event, - }, + aclient::history::HistoryId, + daemon::DaemonHandle, + events::DaemonEvent, + generated::control::{ + SendEventRequest, SendEventResponse, + control_server::{Control, ControlServer}, + send_event_request::Event, }, }; @@ -23,18 +21,18 @@ use crate::{ /// /// This service is used by external processes to inject events into the daemon. /// It's not a component - it's part of the daemon's core infrastructure. -pub struct ControlService { +pub(crate) struct ControlService { handle: DaemonHandle, } impl ControlService { /// Create a new control service with the given daemon handle. - pub fn new(handle: DaemonHandle) -> Self { + pub(crate) fn new(handle: DaemonHandle) -> Self { Self { handle } } /// Get a tonic server for this service. - pub fn into_server(self) -> ControlServer { + pub(crate) fn into_server(self) -> ControlServer { ControlServer::new(self) } } -- cgit v1.3.1