added missing lock
This commit is contained in:
2
main.go
2
main.go
@@ -141,7 +141,9 @@ func housekeeping() {
|
||||
}
|
||||
|
||||
// try parsing demos not parsed
|
||||
db.Lock.RLock()
|
||||
tMatches, err := db.Client.Match.Query().Where(match.And(match.DateGT(time.Now().UTC().AddDate(0, 0, -30)), match.DemoParsed(false))).All(context.Background())
|
||||
db.Lock.RUnlock()
|
||||
if err != nil {
|
||||
log.Warningf("[HK] Failure getting matches to retry parsing: %v", err)
|
||||
continue
|
||||
|
Reference in New Issue
Block a user