BRPOP and BLPOP used to fail when receiving nil.
Error was: [akka://redis-client-patch/user/RedisClient] Response parsing failed: *-1\r\n
The Iterator parser works as expected and returns an empty Iterator when receiving a bulk of size -1 but then the pairOptionPD was calling next on it hence the error.
BRPOP
andBLPOP
used to fail when receivingnil
. Error was:[akka://redis-client-patch/user/RedisClient] Response parsing failed: *-1\r\n
TheIterator
parser works as expected and returns an empty Iterator when receiving a bulk of size -1 but then thepairOptionPD
was callingnext
on it hence the error.