• WuYunlong's avatar
    see #7250, fix signature of RedisModule_DeauthenticateAndCloseClient (#7645) · 08670731
    WuYunlong authored
    In redismodule.h, RedisModule_DeauthenticateAndCloseClient returns void
    `void REDISMODULE_API_FUNC(RedisModule_DeauthenticateAndCloseClient)(RedisModuleCtx *ctx, uint64_t client_id);`
    But in module.c, RM_DeauthenticateAndCloseClient returns int
    `int RM_DeauthenticateAndCloseClient(RedisModuleCtx *ctx, uint64_t client_id)`
    
    It it safe to change return value from `void` to `int` from the user's perspective.
    
    (cherry picked from commit d6220f12)
    08670731
redismodule.h 51.7 KB