chore: move unused imports into cfg
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-05-15 15:12:10 +02:00
parent 91ad8eda01
commit 1f0f526e38
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

View File

@ -1,5 +1,3 @@
use std::net::SocketAddr;
use clap::{Parser, Subcommand, ValueEnum}; use clap::{Parser, Subcommand, ValueEnum};
use hyperlog_tui::{ use hyperlog_tui::{
commander, commander,
@ -36,11 +34,11 @@ enum Commands {
#[cfg(feature = "include_server")] #[cfg(feature = "include_server")]
Serve { Serve {
#[arg(env = "EXTERNAL_HOST", long, default_value = "127.0.0.1:3000")] #[arg(env = "EXTERNAL_HOST", long, default_value = "127.0.0.1:3000")]
external_host: SocketAddr, external_host: std::net::SocketAddr,
#[arg(env = "INTERNAL_HOST", long, default_value = "127.0.0.1:3001")] #[arg(env = "INTERNAL_HOST", long, default_value = "127.0.0.1:3001")]
internal_host: SocketAddr, internal_host: std::net::SocketAddr,
#[arg(env = "EXTERNAL_GRPC_HOST", long, default_value = "127.0.0.1:4000")] #[arg(env = "EXTERNAL_GRPC_HOST", long, default_value = "127.0.0.1:4000")]
external_grpc_host: SocketAddr, external_grpc_host: std::net::SocketAddr,
}, },
Exec { Exec {
#[command(subcommand)] #[command(subcommand)]