From 6b634b7650267ec4441fe4bc6e5886732adca67b Mon Sep 17 00:00:00 2001 From: Albumen Kevin Date: Fri, 27 Oct 2023 17:46:19 +0800 Subject: [PATCH] Fix service key params when remove service instance listener (#13272) --- .../apache/dubbo/registry/client/ServiceDiscoveryRegistry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/ServiceDiscoveryRegistry.java b/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/ServiceDiscoveryRegistry.java index ec125e37be5..1abd3831f92 100644 --- a/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/ServiceDiscoveryRegistry.java +++ b/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/ServiceDiscoveryRegistry.java @@ -258,7 +258,7 @@ public void doUnsubscribe(URL url, NotifyListener listener) { appSubscriptionLock.lock(); ServiceInstancesChangedListener instancesChangedListener = serviceListeners.get(serviceNamesKey); if (instancesChangedListener != null) { - instancesChangedListener.removeListener(protocolServiceKey, listener); + instancesChangedListener.removeListener(url.getServiceKey(), listener); if (!instancesChangedListener.hasListeners()) { instancesChangedListener.destroy(); serviceListeners.remove(serviceNamesKey);