Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Dec 7, 2024
1 parent 2aad201 commit 517873a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/state_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ pub struct StateFile {
#[derive(Debug, serde::Serialize, serde::Deserialize)]
pub struct StateFileDaemon {
pub pid: u32,
pub status: StateFileDaemonStatus,
pub status: DaemonStatus,
}

#[derive(Debug, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
pub enum StateFileDaemonStatus {
pub enum DaemonStatus {
Waiting,
Running,
}
Expand Down
4 changes: 2 additions & 2 deletions src/supervisor.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::state_file::{StateFile, StateFileDaemon, StateFileDaemonStatus};
use crate::state_file::{DaemonStatus, StateFile, StateFileDaemon};
use crate::{env, ipc, Result};
use duct::cmd;
use interprocess::local_socket::tokio::prelude::*;
Expand Down Expand Up @@ -46,7 +46,7 @@ impl Supervisor {
"pitchfork".to_string(),
StateFileDaemon {
pid,
status: StateFileDaemonStatus::Running,
status: DaemonStatus::Running,
},
);
self.state_file.write()?;
Expand Down

0 comments on commit 517873a

Please sign in to comment.