Skip to content

Conversation

cruelchen
Copy link
Contributor

服务注册的时候zookeeper_registrar里会取service.GetPrefix()得到的prefix是service-default-default-idalloc-latest,而在查找服务时
resolver_builder里用target.URL.Path作为watchKey,是这样的/service/default/default/idalloc/latest/,传到zookeeper_discovery的Search里 prefix转成了service-default-default-idalloc-latest-,最后面有个杠-

@cruelchen cruelchen marked this pull request as ready for review May 22, 2024 06:23
@gqcn gqcn changed the title zookeeper : grpc用zookeeper服务注册发现 prefix不正确 contrib/registry/zookeeper: fix invalid searching prefix May 22, 2024
@gqcn gqcn merged commit 1e8f428 into gogf:master May 22, 2024
@gqcn gqcn changed the title contrib/registry/zookeeper: fix invalid searching prefix fix(contrib/registry/zookeeper): invalid searching prefix Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants