Closed aktasonur closed 10 years ago
Thanks for reporting. Will take a look very soon.
It is resolved. Instead of calling Redis.client.zrank method directly, I changed it to send a message to the actor itself which is doing the same job when it receives a message case class RankOfUserId.
Future.traverse(userIds)(userId =>
self ? RankOfUserId(userId)
....
Now results return correctly. It might be because of futures; not the driver at all.
Hi,
There is no problem with a single zrank call, it returns correct rank result.
However when I call zrank in a loop for multiple members, only 1 or 2 of 15 calls returned correct rank value; the rest returns None even though the members exist in SortedSet!,
It does not matter if I use with Future.traverse or Future.sequence or a simple scala loop.
Thanks