浏览代码

Polish cluster flow control demo: add port in Nacos address (#1655)

Signed-off-by: yunfeiyanggzq <yunfeiyang@buaa.edu.cn>
master
ZhiQiang Gu GitHub 4 年前
父节点
当前提交
b9b1e8a481
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      sentinel-demo/sentinel-demo-cluster/sentinel-demo-cluster-embedded/src/main/java/com/alibaba/csp/sentinel/demo/cluster/init/DemoClusterInitFunc.java
  2. +1
    -1
      sentinel-demo/sentinel-demo-cluster/sentinel-demo-cluster-server-alone/src/main/java/com/alibaba/csp/sentinel/demo/cluster/init/DemoClusterServerInitFunc.java

+ 1
- 1
sentinel-demo/sentinel-demo-cluster/sentinel-demo-cluster-embedded/src/main/java/com/alibaba/csp/sentinel/demo/cluster/init/DemoClusterInitFunc.java 查看文件

@@ -49,7 +49,7 @@ public class DemoClusterInitFunc implements InitFunc {

private static final String APP_NAME = AppNameUtil.getAppName();

private final String remoteAddress = "localhost";
private final String remoteAddress = "localhost:8848";
private final String groupId = "SENTINEL_GROUP";

private final String flowDataId = APP_NAME + DemoConstants.FLOW_POSTFIX;


+ 1
- 1
sentinel-demo/sentinel-demo-cluster/sentinel-demo-cluster-server-alone/src/main/java/com/alibaba/csp/sentinel/demo/cluster/init/DemoClusterServerInitFunc.java 查看文件

@@ -36,7 +36,7 @@ import com.alibaba.fastjson.TypeReference;
*/
public class DemoClusterServerInitFunc implements InitFunc {

private final String remoteAddress = "localhost";
private final String remoteAddress = "localhost:8848";
private final String groupId = "SENTINEL_GROUP";
private final String namespaceSetDataId = "cluster-server-namespace-set";
private final String serverTransportDataId = "cluster-server-transport-config";


正在加载...
取消
保存