Commit f4dcf8d6 by CaIon

feat: initialize cacheRatioMap in InitModelSettings function

parent 9246dd20
...@@ -277,6 +277,11 @@ func InitModelSettings() { ...@@ -277,6 +277,11 @@ func InitModelSettings() {
CompletionRatioMutex.Unlock() CompletionRatioMutex.Unlock()
// Initialize cacheRatioMap // Initialize cacheRatioMap
cacheRatioMapMutex.Lock()
cacheRatioMap = defaultCreateCacheRatio
cacheRatioMapMutex.Unlock()
// initialize imageRatioMap
imageRatioMapMutex.Lock() imageRatioMapMutex.Lock()
imageRatioMap = defaultImageRatio imageRatioMap = defaultImageRatio
imageRatioMapMutex.Unlock() imageRatioMapMutex.Unlock()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment