Chore: panic is not solved (WIP)

This commit is contained in:
Grail Finder
2026-03-07 09:40:58 +03:00
parent 118a0a0d55
commit 2c495253c2
2 changed files with 7 additions and 0 deletions

2
bot.go
View File

@@ -418,7 +418,9 @@ func fetchLCPModelsWithStatus() (*models.LCPModels, error) {
if err := json.NewDecoder(resp.Body).Decode(data); err != nil {
return nil, err
}
localModelsMu.Lock()
localModelsData = data
localModelsMu.Unlock()
return data, nil
}