From aa1021fb14bd79c01e34ea99733b2213da70029a Mon Sep 17 00:00:00 2001 From: Yijiao Qin Date: Sun, 1 Dec 2024 18:35:15 -0800 Subject: [PATCH] Update redispipeline.h (#954) use "\n" instead of semicolon to separate redis commands in a c++ string --- common/redispipeline.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/redispipeline.h b/common/redispipeline.h index be7561b6..96f97ab8 100644 --- a/common/redispipeline.h +++ b/common/redispipeline.h @@ -164,7 +164,7 @@ class RedisPipeline { return; m_channels.insert(channel); - m_luaPub += "redis.call('PUBLISH', '" + channel + "', 'G');"; + m_luaPub += "redis.call('PUBLISH', '" + channel + "', 'G')\n"; m_shaPub = loadRedisScript(m_luaPub); }