@@ -36,8 +36,8 @@ public protocol ValkeyNodeDiscovery: Sendable {
36
36
/// ```swift
37
37
/// // Using ExpressibleByArrayLiteral conformance for more concise initialization
38
38
/// 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)
41
41
/// ]
42
42
/// ```
43
43
public struct ValkeyStaticNodeDiscovery : ValkeyNodeDiscovery {
@@ -47,35 +47,30 @@ public struct ValkeyStaticNodeDiscovery: ValkeyNodeDiscovery {
47
47
public var ip : String ?
48
48
public var endpoint : String
49
49
public var port : Int
50
- public var useTLS : Bool
51
50
52
51
/// Initializes a `NodeDescription` with a host and optional IP.
53
52
///
54
53
/// - Parameters:
55
54
/// - host: The host name of the node.
56
55
/// - ip: The optional IP address of the node.
57
56
/// - 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 ) {
60
58
self . host = host
61
59
self . ip = ip
62
60
self . endpoint = host
63
61
self . port = port
64
- self . useTLS = useTLS
65
62
}
66
63
67
64
/// Initializes a `NodeDescription` with an IP address.
68
65
///
69
66
/// - Parameters:
70
67
/// - ip: The IP address of the node.
71
68
/// - 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 ) {
74
70
self . host = nil
75
71
self . ip = ip
76
72
self . endpoint = ip
77
73
self . port = port
78
- self . useTLS = useTLS
79
74
}
80
75
}
81
76
0 commit comments