Skip to content

Commit

Permalink
fix bug 267
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyu committed Jun 21, 2021
1 parent 9eef032 commit 8432abd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clients/naming_client/naming_cache/service_info_holder.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ func NewServiceInfoHolder(namespace, cacheDir string, updateCacheWhenEmpty, notL
cacheDir: cacheDir,
subCallback: NewSubscribeCallback(),
UpdateTimeMap: cache.NewConcurrentMap(),
ServiceInfoMap: cache.NewConcurrentMap(),
}
if notLoadCacheAtStart {
serviceInfoHolder.ServiceInfoMap = cache.NewConcurrentMap()
} else {

if !notLoadCacheAtStart {
serviceInfoHolder.loadCacheFromDisk()
}
return serviceInfoHolder
Expand Down

0 comments on commit 8432abd

Please sign in to comment.