mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
fix datarace on issue indexer queue (#9490)
This commit is contained in:
@@ -38,6 +38,8 @@ func Init() {
|
||||
return
|
||||
}
|
||||
|
||||
initQueue(setting.Indexer.UpdateQueueLength)
|
||||
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
|
||||
graceful.GetManager().RunAtTerminate(ctx, func() {
|
||||
|
Reference in New Issue
Block a user