Browse Source

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

Signed-off-by: yunfeiyanggzq <yunfeiyang@buaa.edu.cn>
master
ZhiQiang Gu GitHub 4 years ago
parent
commit
b9b1e8a481
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions
  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 View File

@@ -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 View File

@@ -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";


Loading…
Cancel
Save