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

看代码遇到困惑的地方,请教下为啥discovery://default/goim.logic 这个地址可以直接 dail #401

Open
aiyaya188 opened this issue Aug 19, 2023 · 1 comment

Comments

@aiyaya188
Copy link

conn, err := grpc.DialContext(ctx, "discovery://default/goim.logic",
以上这段建立logic的 grpc 链接,为啥 discovery://default/goim.logic  不是一个标准的tcp地址 却可以直接dial 很困惑
@fengbianyun
Copy link

主要是查看grpc自定义域名解析。此项目中起作用的代码是
dis := naming.New(conf.Conf.Discovery)
resolver.Register(dis)

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

No branches or pull requests

2 participants