fix datarace on issue indexer queue (#9490)

This commit is contained in:
Lunny Xiao 2019-12-25 17:44:09 +08:00 committed by GitHub
parent f88715e29c
commit 8b2f29c0d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -38,6 +38,8 @@ func Init() {
return
}
initQueue(setting.Indexer.UpdateQueueLength)
ctx, cancel := context.WithCancel(context.Background())
graceful.GetManager().RunAtTerminate(ctx, func() {