@@ -144,7 +144,7 @@ public struct ValkeyClusterNode: Hashable, Sendable, RESPTokenDecodable {
144144 /// - configEpoch: Configuration epoch
145145 /// - linkState: Link state to this node
146146 /// - slots: Hash slots served by this node
147- public init (
147+ init (
148148 nodeId: String ,
149149 endpoint: String ,
150150 flags: Set < Flag > ,
@@ -330,7 +330,7 @@ public struct ValkeyClusterDescription: Hashable, Sendable, RESPTokenDecodable {
330330 /// - role: The node role
331331 /// - replicationOffset: The replication offset
332332 /// - health: The node health
333- public init (
333+ package init (
334334 id: String ,
335335 port: Int ? ,
336336 tlsPort: Int ? ,
@@ -369,7 +369,7 @@ public struct ValkeyClusterDescription: Hashable, Sendable, RESPTokenDecodable {
369369 /// - Parameters:
370370 /// - slots: The slots in the shard.
371371 /// - nodes: The nodes in the shard.
372- public init ( slots: HashSlots , nodes: [ Node ] ) {
372+ package init ( slots: HashSlots , nodes: [ Node ] ) {
373373 self . slots = slots
374374 self . nodes = nodes
375375 }
@@ -392,7 +392,7 @@ public struct ValkeyClusterDescription: Hashable, Sendable, RESPTokenDecodable {
392392
393393 /// Creates a cluster description from a list of shards you provide.
394394 /// - Parameter shards: The shards that make up the cluster.
395- public init ( _ shards: [ ValkeyClusterDescription . Shard ] ) {
395+ package init ( _ shards: [ ValkeyClusterDescription . Shard ] ) {
396396 self . shards = shards
397397 }
398398}
@@ -449,7 +449,7 @@ public struct ValkeyClusterLink: Hashable, Sendable, RESPTokenDecodable {
449449 /// - events: Events registered for the link
450450 /// - sendBufferAllocated: Allocated send buffer size
451451 /// - sendBufferUsed: Used send buffer size
452- public init (
452+ init (
453453 direction: Direction ,
454454 node: String ,
455455 createTime: Int ,
@@ -546,7 +546,7 @@ public struct ValkeyClusterSlotRange: Hashable, Sendable, RESPTokenDecodable {
546546 /// - startSlot: The start slot
547547 /// - endSlot: The end slot
548548 /// - nodes: The nodes serving this range
549- public init ( startSlot: Int , endSlot: Int , nodes: [ Node ] ) {
549+ init ( startSlot: Int , endSlot: Int , nodes: [ Node ] ) {
550550 self . startSlot = startSlot
551551 self . endSlot = endSlot
552552 self . nodes = nodes
0 commit comments