Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(contrib/registry/zookeeper): invalid searching prefix #3598

Merged
merged 1 commit into from
May 22, 2024

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
23 checks passed
@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