Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions Sources/Valkey/Commands/ClusterCommands.swift
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,6 @@ public enum CLUSTER {
/// Returns a list of all TCP links to and from peer nodes.
@_documentation(visibility: internal)
public struct LINKS: ValkeyCommand {
public typealias Response = RESPToken.Array

@inlinable public static var name: String { "CLUSTER LINKS" }

@inlinable public init() {
Expand Down Expand Up @@ -789,8 +787,6 @@ public enum CLUSTER {
}
}
}
public typealias Response = RESPToken.Array

@inlinable public static var name: String { "CLUSTER SLOT-STATS" }

public var filter: Filter
Expand All @@ -807,8 +803,6 @@ public enum CLUSTER {
/// Returns the mapping of cluster slots to nodes.
@_documentation(visibility: internal)
public struct SLOTS: ValkeyCommand {
public typealias Response = RESPToken.Array

@inlinable public static var name: String { "CLUSTER SLOTS" }

@inlinable public init() {
Expand Down Expand Up @@ -1068,7 +1062,7 @@ extension ValkeyClientProtocol {
/// - Response: [Array]: An array of cluster links and their attributes.
@inlinable
@discardableResult
public func clusterLinks() async throws -> RESPToken.Array {
public func clusterLinks() async throws -> CLUSTER.LINKS.Response {
try await execute(CLUSTER.LINKS())
}

Expand Down Expand Up @@ -1229,7 +1223,7 @@ extension ValkeyClientProtocol {
/// - Response: [Array]: Array of nested arrays, where the inner array element represents a slot and its respective usage statistics.
@inlinable
@discardableResult
public func clusterSlotStats(filter: CLUSTER.SLOTSTATS.Filter) async throws -> RESPToken.Array {
public func clusterSlotStats(filter: CLUSTER.SLOTSTATS.Filter) async throws -> CLUSTER.SLOTSTATS.Response {
try await execute(CLUSTER.SLOTSTATS(filter: filter))
}

Expand All @@ -1244,7 +1238,7 @@ extension ValkeyClientProtocol {
/// - Response: [Array]: Nested list of slot ranges with networking information.
@inlinable
@discardableResult
public func clusterSlots() async throws -> RESPToken.Array {
public func clusterSlots() async throws -> CLUSTER.SLOTS.Response {
try await execute(CLUSTER.SLOTS())
}

Expand Down
Loading
Loading