From 64ba73661fbc11d2273408b19be2019068e7ca53 Mon Sep 17 00:00:00 2001 From: Roshan Khatri Date: Mon, 22 Jul 2024 22:41:24 +0000 Subject: [PATCH] Minor change Signed-off-by: Roshan Khatri --- src/cluster_legacy.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cluster_legacy.c b/src/cluster_legacy.c index 43fcc84a73..bcde3b68dd 100644 --- a/src/cluster_legacy.c +++ b/src/cluster_legacy.c @@ -4142,8 +4142,7 @@ void clusterPropagatePublish(robj *channel, robj *message, int sharded) { clusterSendMessage(node->link, msgblock_light); } else { if (msgblock == NULL) { - msgblock = clusterCreatePublishMsgBlock( - channel, message, 0, sharded ? CLUSTERMSG_TYPE_PUBLISHSHARD : CLUSTERMSG_TYPE_PUBLISH); + msgblock = clusterCreatePublishMsgBlock(channel, message, 0, sharded); } clusterSendMessage(node->link, msgblock); }