Skip to content
Permalink
Browse files
update client.md file naming-service demo machine list
  • Loading branch information
serverglen committed Sep 28, 2020
1 parent b8f21a3 commit 3e6b5aa930de73226dc1c6e76449a993d7e51b38
Showing 2 changed files with 8 additions and 8 deletions.
@@ -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
```

优点: 易于修改,方便单测。
@@ -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.

0 comments on commit 3e6b5aa

Please sign in to comment.