Skip to content

Commit 19cd708

Browse files
fix: Avoids compiler crash on open source MacOS (#251)
Signed-off-by: Jay Herron <NeedleInAJayStack@protonmail.com>
1 parent 40c2ad0 commit 19cd708

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Valkey/Cluster/ValkeyClusterClient.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ public final class ValkeyClusterClient: Sendable {
485485
/// These array of indices are then used to create collections of commands to
486486
/// run on each node
487487
@usableFromInline
488-
func splitCommandsAcrossNodes(commands: [any ValkeyCommand]) async throws -> some Collection<NodeAndCommands> {
488+
func splitCommandsAcrossNodes(commands: [any ValkeyCommand]) async throws -> [ValkeyServerAddress: NodeAndCommands].Values {
489489
var nodeMap: [ValkeyServerAddress: NodeAndCommands] = [:]
490490
var index = commands.startIndex
491491
var prevAddress: ValkeyServerAddress? = nil

0 commit comments

Comments
 (0)