Skip to content

Commit aa2d559

Browse files
committed
Fix bzpop commands
1 parent be141ed commit aa2d559

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/RediStack/Commands/SortedSetCommands.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -746,11 +746,11 @@ extension RedisClient {
746746
assert(response.count == 3, "Unexpected response size returned!")
747747
guard
748748
let key = response[0].string,
749-
let score = Double(fromRESP: response[1])
749+
let score = Double(fromRESP: response[2])
750750
else {
751751
throw RedisClientError.assertionFailure(message: "Unexpected structure in response: \(response)")
752752
}
753-
return (key, score, response[2])
753+
return (key, score, response[1])
754754
}
755755
}
756756
}

0 commit comments

Comments
 (0)