diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-09 22:00:59 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-09 22:00:59 +0200 |
| commit | 620cf8fa33835c1ce1e56b1028ff6e2a6fbe0f39 (patch) | |
| tree | e97e54ff112c8e3fa9f88335bfd1275420a4d69f /crates/daemon/src/control | |
| parent | chore: Separate daemon, client, server, and lib into crates (diff) | |
| download | atuin-620cf8fa33835c1ce1e56b1028ff6e2a6fbe0f39.zip | |
chore: Add more things
Diffstat (limited to '')
| -rw-r--r-- | crates/daemon/src/control/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/daemon/src/control/mod.rs b/crates/daemon/src/control/mod.rs index 79398d61..fcc2a0b8 100644 --- a/crates/daemon/src/control/mod.rs +++ b/crates/daemon/src/control/mod.rs @@ -23,18 +23,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(crate) struct ControlService { +pub struct ControlService { handle: DaemonHandle, } impl ControlService { /// Create a new control service with the given daemon handle. - pub(crate) fn new(handle: DaemonHandle) -> Self { + pub fn new(handle: DaemonHandle) -> Self { Self { handle } } /// Get a tonic server for this service. - pub(crate) fn into_server(self) -> ControlServer<Self> { + pub fn into_server(self) -> ControlServer<Self> { ControlServer::new(self) } } |
