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

agollo start后,main goroutin不能马上拿到config #11

Closed
jieqian opened this issue Dec 1, 2017 · 4 comments
Closed

agollo start后,main goroutin不能马上拿到config #11

jieqian opened this issue Dec 1, 2017 · 4 comments
Assignees

Comments

@jieqian
Copy link

jieqian commented Dec 1, 2017

如题

@zouyx
Copy link
Member

zouyx commented Dec 3, 2017

@jieqian 我看了一下代码,你可以试试用agollo.Start(),不加go,应该可以达到你需要的效果。

@jieqian
Copy link
Author

jieqian commented Dec 4, 2017

@zouyx 试过了, agollo.Start()后,直接getStringValue拿到的还是默认值

@zouyx zouyx closed this as completed in 32e0d1d Dec 4, 2017
@zouyx zouyx self-assigned this Dec 4, 2017
@jieqian
Copy link
Author

jieqian commented Dec 5, 2017

@zouyx 如果同步启动agollo( agollo.Start() ),就可以马上拿到值了,👍

@zouyx
Copy link
Member

zouyx commented Dec 5, 2017

@jieqian 谢谢你发现的bug

@zouyx zouyx removed the wip label Jun 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants