From 08410fe0f2366423d04acc9670aab4d461321b25 Mon Sep 17 00:00:00 2001 From: Mykola Buhaiov Date: Fri, 29 Mar 2024 15:37:19 +0200 Subject: [PATCH] fix: change let to var in ConsulConfig --- .../ConsulHealthChecks/ConsulConfig.swift | 14 +++++++------- Sources/HealthChecks/Models/HealthCheckItem.swift | 1 - 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Sources/HealthChecks/ConsulHealthChecks/ConsulConfig.swift b/Sources/HealthChecks/ConsulHealthChecks/ConsulConfig.swift index aa7f975..dc2d8ee 100644 --- a/Sources/HealthChecks/ConsulHealthChecks/ConsulConfig.swift +++ b/Sources/HealthChecks/ConsulHealthChecks/ConsulConfig.swift @@ -29,19 +29,19 @@ public struct ConsulConfig { /// A unique identifier for this Consul configuration within your application. /// This ID is not related to Consul itself and can be used for internal reference. /// Example: "43119325-63f5-4e14-9175-84e0e296c527" - public let id: String - + public var id: String + /// The URL of the Consul server to connect to. /// Example: "http://127.0.0.1:8500", "https://xmpl-consul.example.com" - public let url: String - + public var url: String + /// The username for authenticating with Consul (optional). /// Example: "username" - public let username: String? - + public var username: String? + /// The password for authenticating with Consul (optional). /// Example: "password" - public let password: String? + public var password: String? /// Initializes a `ConsulConfig` with the specified details. /// diff --git a/Sources/HealthChecks/Models/HealthCheckItem.swift b/Sources/HealthChecks/Models/HealthCheckItem.swift index 78ba8e7..f6c4f8b 100644 --- a/Sources/HealthChecks/Models/HealthCheckItem.swift +++ b/Sources/HealthChecks/Models/HealthCheckItem.swift @@ -64,7 +64,6 @@ public struct HealthCheckItem: Content { /// Number of node /// Example: `1` public var node: Int? - /// Initializer for HealthCheckItem /// - Parameters: