• michael-grunder's avatar
    Maintain backward compatibiliy withour onConnect callback. · 6a3e96ad
    michael-grunder authored
    In f69fac76, our async onConnect
    callback was improved to take a non-const redisAsyncContext allowing it
    to be reentrant.
    
    Unfortunately, this is a breaking change we can't make until hiredis
    v2.0.0.
    
    This commit creates a separate callback member and corresponding
    function that allows us to use the new functionality, while maintaining
    our existing API for legacy code.
    
    Fixes #1086
    6a3e96ad
test.c 79 KB