mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-20 16:10:50 +00:00
fix datarace on issue indexer queue (#9490)
This commit is contained in:
parent
f88715e29c
commit
8b2f29c0d2
2 changed files with 6 additions and 1 deletions
|
@ -38,6 +38,8 @@ func Init() {
|
|||
return
|
||||
}
|
||||
|
||||
initQueue(setting.Indexer.UpdateQueueLength)
|
||||
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
|
||||
graceful.GetManager().RunAtTerminate(ctx, func() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue