Skip to content

Commit

Permalink
Fix static directory metrics label
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbumenJ committed Aug 23, 2023
1 parent 0de4c39 commit 46face8
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@
import org.apache.dubbo.rpc.cluster.router.state.BitList;

import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import static org.apache.dubbo.common.constants.CommonConstants.INTERFACE_REGISTER_MODE;
import static org.apache.dubbo.common.constants.LoggerCodeConstants.CLUSTER_FAILED_SITE_SELECTION;
import static org.apache.dubbo.common.constants.RegistryConstants.REGISTER_MODE_KEY;
import static org.apache.dubbo.common.constants.RegistryConstants.REGISTRY_KEY;

/**
Expand Down Expand Up @@ -130,6 +133,9 @@ protected List<Invoker<T>> doList(SingleRouterChain<T> singleRouterChain, BitLis

@Override
protected Map<String, String> getDirectoryMeta() {
return Collections.singletonMap(REGISTRY_KEY, "static");
Map<String, String> metas = new HashMap<>();
metas.put(REGISTRY_KEY, "static");
metas.put(REGISTER_MODE_KEY, "static");
return metas;
}
}

0 comments on commit 46face8

Please sign in to comment.