diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-09-11 22:14:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-11 10:14:48 -0400 |
commit | dd1a651b5895cfdb8a141a56aa824ed4d082c41a (patch) | |
tree | c9d8f9adb0c0a9fb9af8623f1590275a395fa1c7 /routers/init.go | |
parent | 910947fbcd229abac9f507e266f94cb8864474cb (diff) | |
download | gitea-dd1a651b5895cfdb8a141a56aa824ed4d082c41a.tar.gz gitea-dd1a651b5895cfdb8a141a56aa824ed4d082c41a.zip |
Move all push update operations to a queue (#10133)
* Fix test
* Add no queue for test only
* improve code
* Auto watch whatever branch operation
* Fix lint
* Rename noqueue to immediate
* Remove old PushUpdate function
* Fix tests
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'routers/init.go')
-rw-r--r-- | routers/init.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/routers/init.go b/routers/init.go index 2f12058ac5..793033f4a4 100644 --- a/routers/init.go +++ b/routers/init.go @@ -35,6 +35,7 @@ import ( "code.gitea.io/gitea/services/mailer" mirror_service "code.gitea.io/gitea/services/mirror" pull_service "code.gitea.io/gitea/services/pull" + "code.gitea.io/gitea/services/repository" "gitea.com/macaron/i18n" "gitea.com/macaron/macaron" @@ -58,6 +59,9 @@ func NewServices() { if err := storage.Init(); err != nil { log.Fatal("storage init failed: %v", err) } + if err := repository.NewContext(); err != nil { + log.Fatal("repository init failed: %v", err) + } mailer.NewContext() _ = cache.NewContext() notification.NewContext() |