Bläddra i källkod

update client.md file naming-service demo machine list

serverglen 3 år sedan
förälder
incheckning
3e6b5aa930
2 ändrade filer med 8 tillägg och 8 borttagningar
  1. 4 4
      docs/cn/client.md
  2. 4 4
      docs/en/client.md

+ 4 - 4
docs/cn/client.md

@@ -93,10 +93,10 @@ BNS是百度内常用的命名服务,比如bns://rdev.matrix.all,其中"bns"
  * 当文件更新时, brpc会重新加载。
 ```
 # 此行会被忽略
-10.24.234.17 tag1  # 这是注释,会被忽略
-10.24.234.17 tag2  # 此行和上一行被认为是不同的实例
-10.24.234.18
-10.24.234.19
+10.24.234.17:8080 tag1  # 这是注释,会被忽略
+10.24.234.17:8090 tag2  # 此行和上一行被认为是不同的实例
+10.24.234.18:8080
+10.24.234.19:8080
 ```
 
 优点: 易于修改,方便单测。

+ 4 - 4
docs/en/client.md

@@ -93,10 +93,10 @@ Servers are put in the file specified by `path`. For example, in "file://conf/ma
  * brpc reloads the file when it's updated.
 ```
 # This line is ignored
-10.24.234.17 tag1  # a comment
-10.24.234.17 tag2  # an instance different from the instance on last line
-10.24.234.18
-10.24.234.19
+10.24.234.17:8080 tag1  # a comment
+10.24.234.17:8090 tag2  # an instance different from the instance on last line
+10.24.234.18:8080
+10.24.234.19:8080
 ```
 
 Pros: easy to modify, convenient for unittests.