@@ -36,8 +36,8 @@ public protocol ValkeyNodeDiscovery: Sendable {
3636/// ```swift
3737/// // Using ExpressibleByArrayLiteral conformance for more concise initialization
3838/// let discovery: ValkeyStaticNodeDiscovery = [
39- /// .init(host: "replica1.valkey.io", port: 10600, useTLS: false ),
40- /// .init(ip: "192.168.12.1", port: 10600, useTLS: true )
39+ /// .init(host: "replica1.valkey.io", port: 10600),
40+ /// .init(ip: "192.168.12.1", port: 10600)
4141/// ]
4242/// ```
4343public struct ValkeyStaticNodeDiscovery : ValkeyNodeDiscovery {
@@ -47,35 +47,30 @@ public struct ValkeyStaticNodeDiscovery: ValkeyNodeDiscovery {
4747 public var ip : String ?
4848 public var endpoint : String
4949 public var port : Int
50- public var useTLS : Bool
5150
5251 /// Initializes a `NodeDescription` with a host and optional IP.
5352 ///
5453 /// - Parameters:
5554 /// - host: The host name of the node.
5655 /// - ip: The optional IP address of the node.
5756 /// - port: The port number the node listens on (default is 6379).
58- /// - useTLS: A boolean indicating whether TLS should be used (default is true).
59- public init ( host: String , ip: String ? = nil , port: Int = 6379 , useTLS: Bool = true ) {
57+ public init ( host: String , ip: String ? = nil , port: Int = 6379 ) {
6058 self . host = host
6159 self . ip = ip
6260 self . endpoint = host
6361 self . port = port
64- self . useTLS = useTLS
6562 }
6663
6764 /// Initializes a `NodeDescription` with an IP address.
6865 ///
6966 /// - Parameters:
7067 /// - ip: The IP address of the node.
7168 /// - port: The port number the node listens on (default is 6379).
72- /// - useTLS: A boolean indicating whether TLS should be used (default is false).
73- public init ( ip: String , port: Int = 6379 , useTLS: Bool = false ) {
69+ public init ( ip: String , port: Int = 6379 ) {
7470 self . host = nil
7571 self . ip = ip
7672 self . endpoint = ip
7773 self . port = port
78- self . useTLS = useTLS
7974 }
8075 }
8176
0 commit comments