-
-
Notifications
You must be signed in to change notification settings - Fork 192
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
listen 顺序问题 #157
Comments
最快的修改方式是在 |
是遇到什么具体场景的问题吗?可以提供一下场景吗? |
比如说我 listen 了 我连续两次在 apollo 修改了配置,比如说,A,B 两次操作,B 是后一次
但是 那么就会存在这种可能性,B 的配置所在 goroutine 先执行了,然后 A 后执行了,导致我用了 A(老的)的配置 |
v4.0.4 has released |
https://github.com/zouyx/agollo/blob/e35bcef3d07be7326e222fe8eab5b9a59c5697cd/storage/repository.go#L371-L387
由于异步的去触发 change,change 在这里没有保证顺序,在 listener 里没法知道 listen 到的一定是最新的一次
The text was updated successfully, but these errors were encountered: