File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -438,15 +438,16 @@ func (client *ConfigClient) executeConfigListen() {
438
438
}
439
439
}
440
440
441
- for _ , v := range caches {
442
- changeKey := util .GetConfigCacheKey (v .dataId , v .group , v .tenant )
441
+ for _ , v := range client .cacheMap .Items () {
442
+ data := v .(cacheData )
443
+ changeKey := util .GetConfigCacheKey (data .dataId , data .group , data .tenant )
443
444
if _ , ok := changeKeys [changeKey ]; ! ok {
444
- v .isSyncWithServer = true
445
- client .cacheMap .Set (changeKey , v )
445
+ data .isSyncWithServer = true
446
+ client .cacheMap .Set (changeKey , data )
446
447
continue
447
448
}
448
- v .isInitializing = true
449
- client .cacheMap .Set (changeKey , v )
449
+ data .isInitializing = true
450
+ client .cacheMap .Set (changeKey , data )
450
451
}
451
452
452
453
}
You can’t perform that action at this time.
0 commit comments