mirror of
https://gitee.com/gitea/gitea
synced 2025-11-27 03:40:27 +08: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