From 3a1f0c297e37608035514a98ebc51133daad7863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E9=AD=81?= <670569467@qq.com> Date: Tue, 26 Mar 2024 17:16:56 +0800 Subject: [PATCH] [ISSUE #11880]Fixed the issue of duplicate notifications of configuration changes. (#11881) --- .../com/alibaba/nacos/client/config/impl/ClientWorker.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java b/client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java index 1f26af2eb48..17e43f7d132 100644 --- a/client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java +++ b/client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java @@ -693,7 +693,8 @@ private void initRpcClientHandler(final RpcClient rpcClientInner) { */ rpcClientInner.registerServerRequestHandler((request, connection) -> { if (request instanceof ConfigChangeNotifyRequest) { - handleConfigChangeNotifyRequest((ConfigChangeNotifyRequest) request, rpcClientInner.getName()); + return handleConfigChangeNotifyRequest((ConfigChangeNotifyRequest) request, + rpcClientInner.getName()); } return null; });