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

提供一个接口,在服务发现准备好之前,等待准备好 #1364

Closed
gaohuag opened this issue Aug 3, 2021 · 1 comment
Closed
Labels
occupied Issue has been occupied P2

Comments

@gaohuag
Copy link

gaohuag commented Aug 3, 2021

What would you like to be added:
提供一个接口,在服务发现准备好之前,等待准备好
Why is this needed:
目前的策略是sleep 3s,见代码:
"""
func init() {
config.Load()
referenceConfig.GenericLoad(appName) //appName is the unique identification of RPCService
time.Sleep(3 * time.Second)
}
"""

@LaurenceLiZhixin
Copy link
Contributor

I updated the default reference config's check field to true, and consumerConfig would wait for invoker ready until timeout.
Refer to #1531

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
occupied Issue has been occupied P2
Projects
None yet
Development

No branches or pull requests

2 participants