feat: initialize cacheRatioMap in InitModelSettings function
This commit is contained in:
parent
9246dd2070
commit
f4dcf8d6b6
@ -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()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user