Skip to content

Commit

Permalink
fix tag key been deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
stonelion committed Jul 14, 2023
1 parent 49886b7 commit b0c0181
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
import static org.apache.dubbo.common.constants.CommonConstants.ENABLED_KEY;
import static org.apache.dubbo.common.constants.CommonConstants.PROTOCOL_KEY;
import static org.apache.dubbo.common.constants.CommonConstants.SIDE_KEY;
import static org.apache.dubbo.common.constants.CommonConstants.TAG_KEY;
import static org.apache.dubbo.common.constants.LoggerCodeConstants.PROTOCOL_FAILED_INIT_SERIALIZATION_OPTIMIZER;
import static org.apache.dubbo.common.constants.LoggerCodeConstants.PROTOCOL_FAILED_REFER_INVOKER;
import static org.apache.dubbo.common.constants.LoggerCodeConstants.PROTOCOL_UNSUPPORTED;
Expand Down Expand Up @@ -131,7 +130,7 @@ public void subscribe(URL url) {
}

ApplicationModel applicationModel = url.getApplicationModel();
MetricsEventBus.post(RegistryEvent.toSubscribeEvent(applicationModel),() ->
MetricsEventBus.post(RegistryEvent.toSubscribeEvent(applicationModel), () ->
{
super.subscribe(url);
return null;
Expand Down Expand Up @@ -503,7 +502,7 @@ private URL mergeUrl(URL providerUrl) {

// FIXME, kept for mock
if (providerUrl.hasParameter(MOCK_KEY) || providerUrl.getAnyMethodParameter(MOCK_KEY) != null) {
providerUrl = providerUrl.removeParameter(TAG_KEY);
providerUrl = providerUrl.removeParameter(MOCK_KEY);
}

if ((providerUrl.getPath() == null || providerUrl.getPath()
Expand Down

0 comments on commit b0c0181

Please sign in to comment.