CAICAIIs commented on issue #3070:
URL: https://github.com/apache/dubbo-go/issues/3070#issuecomment-3521260244
当我用本地仓库修改回去并测试发现几乎没什么问题:
```bash
~/github/dubbo-go$ go test -v ./registry/etcdv3
=== RUN TestNewEtcdV3ServiceDiscovery
2025-11-12T18:17:34.897+0800 INFO etcdv3/service_discovery.go:310 etcd
address is: 127.0.0.1:2379,timeout is:5s
2025/11/12 18:17:34 etcd client {Endpoints:[127.0.0.1:2379], Name:etcd
registry} keep goroutine game over.
2025/11/12 18:17:34 etcd client{Name:etcd registry,
Endpoints:[127.0.0.1:2379]} exit now.
--- PASS: TestNewEtcdV3ServiceDiscovery (0.00s)
=== RUN TestEtcdV3ServiceDiscoveryGetDefaultPageSize
--- PASS: TestEtcdV3ServiceDiscoveryGetDefaultPageSize (0.00s)
=== RUN TestFunction
2025-11-12T18:17:34.902+0800 INFO etcdv3/service_discovery.go:310 etcd
address is: 127.0.0.1:2379,timeout is:5s
2025/11/12 18:17:34 etcd client {Endpoints:[127.0.0.1:2379], Name:etcd
registry} keep goroutine game over.
2025/11/12 18:17:34 listenKeepAliveRsp canceled: unexpected lease expired:
/services/test/127.0.0.1:2233
2025/11/12 18:17:34 listenKeepAliveRsp canceled: unexpected lease expired:
/services/test/127.0.0.1:2233
2025/11/12 18:17:34 etcd client{Name:etcd registry,
Endpoints:[127.0.0.1:2379]} exit now.
--- PASS: TestFunction (0.01s)
PASS
ok dubbo.apache.org/dubbo-go/v3/registry/etcdv3 (cached)
```
我觉得虽然 grpc.WithBlock() 被标记为弃用,但在最新版本里依旧保留,所以我们可以等官方给出替代 API 再来修改,现在先回退回去或许好点
--
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]