diff --git a/src/bin/ptth_relay.rs b/src/bin/ptth_relay.rs index ecf8867..c0c878b 100644 --- a/src/bin/ptth_relay.rs +++ b/src/bin/ptth_relay.rs @@ -28,7 +28,7 @@ async fn main () -> Result <(), Box > { let config_path = PathBuf::from ("config/ptth_relay.toml"); let config = Config::from_file (&config_path).await?; - info! ("ptth_relay Git version: {:?}", ptth::git_version::GIT_VERSION); + info! ("ptth_relay Git version: {:?}", ptth::relay::git_version::GIT_VERSION); let (shutdown_rx, forced_shutdown) = ptth::graceful_shutdown::init_with_force (); diff --git a/src/lib.rs b/src/lib.rs index ec195a0..a541132 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,7 +5,6 @@ pub const PTTH_MAGIC_HEADER: &str = "X-PTTH-2LJYXWC4"; -pub mod git_version; pub mod graceful_shutdown; pub mod http_serde; pub mod prelude; diff --git a/src/git_version.rs b/src/relay/git_version.rs similarity index 100% rename from src/git_version.rs rename to src/relay/git_version.rs diff --git a/src/relay/mod.rs b/src/relay/mod.rs index 11cfdd5..5ba0fb8 100644 --- a/src/relay/mod.rs +++ b/src/relay/mod.rs @@ -51,6 +51,7 @@ use crate::{ }; pub mod config; +pub mod git_version; pub use config::{Config, ConfigError};