feat: initialize cacheRatioMap in InitModelSettings function

This commit is contained in:
CaIon committed 2025-04-26 17:06:03 +08:00
1 parent 9246dd2070
commit f4dcf8d6b6
1 file changed
+5
+5
View File
@@ -277,6 +277,11 @@ func InitModelSettings() {
CompletionRatioMutex.Unlock()
// Initialize cacheRatioMap
cacheRatioMapMutex.Lock()
cacheRatioMap = defaultCreateCacheRatio
cacheRatioMapMutex.Unlock()
// initialize imageRatioMap
imageRatioMapMutex.Lock()
imageRatioMap = defaultImageRatio
imageRatioMapMutex.Unlock()