From cf3dd45f488b989b98505df5d25f9437bb8ca939 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Mon, 6 Jan 2025 00:16:11 +0100 Subject: [PATCH] chore: fmt --- agent/src/main.rs | 15 ++++++++++++--- controller/src/bin/patagia-controller.rs | 15 ++++++++++++--- 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/agent/src/main.rs b/agent/src/main.rs index 3b9eead..8a9d002 100644 --- a/agent/src/main.rs +++ b/agent/src/main.rs @@ -7,11 +7,20 @@ mod patagia_api; #[derive(Parser, Debug)] #[command(version, about, long_about = None)] struct Cli { - #[arg(long = "telemetry-otlp-endpoint", default_value = "http://localhost:4317", value_name = "OTEL_EXPORTER_OTLP_ENDPOINT")] + #[arg( + long = "telemetry-otlp-endpoint", + default_value = "http://localhost:4317", + value_name = "OTEL_EXPORTER_OTLP_ENDPOINT" + )] otlp_endpoint: Option, - #[arg(long = "log-stderr", short = 'v', default_value = "false", value_name = "LOG_TO_STDERR")] - log_stderr: bool + #[arg( + long = "log-stderr", + short = 'v', + default_value = "false", + value_name = "LOG_TO_STDERR" + )] + log_stderr: bool, } #[tokio::main] diff --git a/controller/src/bin/patagia-controller.rs b/controller/src/bin/patagia-controller.rs index fbc56b8..7c43aa5 100644 --- a/controller/src/bin/patagia-controller.rs +++ b/controller/src/bin/patagia-controller.rs @@ -15,11 +15,20 @@ use patagia_controller::context::ControllerContext; #[derive(Parser, Debug)] #[command(version, about, long_about = None)] struct Cli { - #[arg(long = "telemetry-otlp-endpoint", default_value = "http://localhost:4317", value_name = "OTEL_EXPORTER_OTLP_ENDPOINT")] + #[arg( + long = "telemetry-otlp-endpoint", + default_value = "http://localhost:4317", + value_name = "OTEL_EXPORTER_OTLP_ENDPOINT" + )] otlp_endpoint: Option, - #[arg(long = "log-stderr", short = 'v', default_value = "false", value_name = "LOG_TO_STDERR")] - log_stderr: bool + #[arg( + long = "log-stderr", + short = 'v', + default_value = "false", + value_name = "LOG_TO_STDERR" + )] + log_stderr: bool, } #[tokio::main]