Skip to content

Commit

Permalink
fix: change let to var in ConsulConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
gulivero1773 committed Mar 29, 2024
1 parent 32b580d commit 08410fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
14 changes: 7 additions & 7 deletions Sources/HealthChecks/ConsulHealthChecks/ConsulConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down
1 change: 0 additions & 1 deletion Sources/HealthChecks/Models/HealthCheckItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ public struct HealthCheckItem: Content {
/// Number of node
/// Example: `1`
public var node: Int?


/// Initializer for HealthCheckItem
/// - Parameters:
Expand Down

0 comments on commit 08410fe

Please sign in to comment.