Merge pull request 'fix(bugseti): acquire mutex in NewQueueService before load()' (#56) from fix/bugseti-queue-race-52 into new
This commit is contained in:
commit
74e2614e41
1 changed files with 2 additions and 0 deletions
|
|
@ -103,7 +103,9 @@ func NewQueueService(config *ConfigService) *QueueService {
|
|||
seen: make(map[string]bool),
|
||||
}
|
||||
heap.Init(&q.issues)
|
||||
q.mu.Lock()
|
||||
q.load() // Load persisted queue
|
||||
q.mu.Unlock()
|
||||
return q
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue