You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/09/03 04:45:11 UTC

[GitHub] [dubbo-go-samples] zhaoyunxing92 commented on a change in pull request #217: Feat/nacos registry

zhaoyunxing92 commented on a change in pull request #217:
URL: https://github.com/apache/dubbo-go-samples/pull/217#discussion_r701579737



##########
File path: registry/nacos/go-client/conf/dubbogo.yml
##########
@@ -1,13 +1,37 @@
 dubbo:
   registries:
-    "demoNacos":
-      protocol: "nacos"
-      timeout: "3s"
-      address: "127.0.0.1:8848"
+    demoNacos:
+      protocol: nacos
+      timeout: 3s
+      address: 127.0.0.1:8848
+  protocols:
+    dubbo:
+      name: dubbo
+      port: 20000
+      # 在 params 中定义当前使用的协议特有的网络配置
+      # 如该 sample 配置的是 dubbo 协议(底层使用 getty 通信库)的参数
+      params:
+        reconnect-interval: 2
+        connection-number: 1
+        heartbeat-period: 5s
+        session-timeout: 180s
+        pool-size: 64
+        pool-ttl: 600
+        compress-encoding: false
+        tcp-no-delay: true
+        tcp-keep-alive: true
+        keep-alive-period: "120s"

Review comment:
       我有发现一个引号




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org