-
-
Notifications
You must be signed in to change notification settings - Fork 193
[FEATURE]: 添加 mustConnect #202
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
Conversation
感谢您提出Pull Request,我会尽快Review。我会在1-2日内进行查看或者回复,如果遇到节假日可能会处理较慢,敬请谅解。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好像 UT 没过- -
我看了好像是拉依赖的时候报错?还没看到UT的日志,这种情况我可以做什么吗 |
Pull Request Test Coverage Report for Build 1611383904Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
十分感谢你提交的 PR。我大概看了一下,我有些思考,不知道是否能帮助到你。
先分析一下这个需求:
- 是否能通过不加配置实现?因为我觉得用户觉得比较麻烦。
- panic 是否是可以交由用户实现?站在用户的角度,一调用就 panic。用户估计不会使用。其次,站在我的角度不想因为 panic 导致 testcase 需要跳过,testcase 是保证用户质量的非常重要的手段。
最后我有些�建议,但不知道是否可以实施:
- 增加一个入口方法( 和我想的一样
- 在启动的时候,因为会先同步一次。
Line 124 in 9b72755
configs := syncApolloConfig.Sync(c.getAppConfig) - 是否重构启动的方法,在其中做文章?
我又重新修改了一下,去掉了必须从远程获取的概念,改为第一次启动获取不到配置就返回错误的方式。 |
我只能想到这么写,如果有更好的实现方式,请提出。第一次提pr,不太会写,谢谢。