Harry33t opened a new pull request, #1094:
URL: https://github.com/apache/dubbo-go-samples/pull/1094
## 修复内容
修复 `config_center/zookeeper` sample 中三处文档与代码不一致的问题:
1. **#1081 — Triple 端口**
README 写 `port: 20000`,但 `go-server/cmd/main.go` 中推送到 ZooKeeper 的 YAML
实际使用 `port: 50000`。服务端实际监听 50000,因此把 README
改为与代码一致。
2. **#1082 — DataID**
README 和 main.go 内联注释都写
`dubbo-go-samples-configcenter-zookeeper-server`,但实际 `WithDataID()` 调用以及
ZooKeeper 路径用的是
`dubbo-go-samples-configcenter-zookeeper-go-server`(多了 `-go-`)。把文档改为与代码一致。
3. **#1084 — Zookeeper 启动命令**
README 写的是 `docker compose up -d zookeeper`,但仓库里并没有对应的 compose
文件,按文档操作会失败。改为具体的 `docker run` 命令,并附
Zookeeper 官方安装文档链接。
`README.md` 和 `README_zh.md` 同步更新。
## 验证
```bash
go build ./config_center/zookeeper/... # 编译通过
只动文档和一处内联注释,无代码逻辑改动。
Closes #1081
Closes #1082
Closes #1084
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]