aboutsummaryrefslogtreecommitdiffstats
path: root/crates/turtle/src/atuin_daemon/control
diff options
context:
space:
mode:
Diffstat (limited to 'crates/turtle/src/atuin_daemon/control')
-rw-r--r--crates/turtle/src/atuin_daemon/control/mod.rs2
-rw-r--r--crates/turtle/src/atuin_daemon/control/service.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/crates/turtle/src/atuin_daemon/control/mod.rs b/crates/turtle/src/atuin_daemon/control/mod.rs
index afb29c57..23068519 100644
--- a/crates/turtle/src/atuin_daemon/control/mod.rs
+++ b/crates/turtle/src/atuin_daemon/control/mod.rs
@@ -9,4 +9,4 @@ mod service;
tonic::include_proto!("control");
// Re-export the service
-pub use service::ControlService;
+pub(crate) use service::ControlService;
diff --git a/crates/turtle/src/atuin_daemon/control/service.rs b/crates/turtle/src/atuin_daemon/control/service.rs
index cb2ff74e..8061a3c2 100644
--- a/crates/turtle/src/atuin_daemon/control/service.rs
+++ b/crates/turtle/src/atuin_daemon/control/service.rs
@@ -18,18 +18,18 @@ use crate::atuin_daemon::{daemon::DaemonHandle, events::DaemonEvent};
///
/// 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<Self> {
+ pub(crate) fn into_server(self) -> ControlServer<Self> {
ControlServer::new(self)
}
}