Skip to content

Commit

Permalink
Update for upstream API changes of the RedisX library
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Dec 14, 2024
1 parent e9b7d09 commit fa74b7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/smax-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ void smaxSetOrigin(XMeta *m, const char *origin) {
*/
// cppcheck-suppress constParameterPointer
// cppcheck-suppress constParameter
void smaxTransmitErrorHandler(Redis *redis, enum redisx_channel channel, const char *op) {
void smaxSocketErrorHandler(Redis *redis, enum redisx_channel channel, const char *op) {
pthread_t tid;

if(redis != smaxGetRedis()) {
Expand Down
4 changes: 2 additions & 2 deletions src/smax.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ int smaxConnect() {
smaxGetProgramID();
xvprintf("SMA-X> program ID: %s\n", programID);

redisxSetTcpBuf(tcpBufSize);
redisxSetTcpBuf(redis, tcpBufSize);

if(sentinel) redis = redisxInitSentinel(SMAX_SENTINEL_SERVICENAME, sentinel, nSentinel);
else redis = redisxInit(server ? server : SMAX_DEFAULT_HOSTNAME);
Expand All @@ -480,7 +480,7 @@ int smaxConnect() {
redisxSetPassword(redis, auth);
redisxSelectDB(redis, dbIndex);

redisxSetTransmitErrorHandler(redis, smaxTransmitErrorHandler);
redisxSetSocketErrorHandler(redis, smaxSocketErrorHandler);

smaxSetPipelineConsumer(smaxProcessPipedWritesAsync);
smaxAddSubscriber(NULL, ProcessUpdateNotificationAsync);
Expand Down

0 comments on commit fa74b7c

Please sign in to comment.