summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--routers/init.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/init.go b/routers/init.go
index 38a456639d..23bf7ae628 100644
--- a/routers/init.go
+++ b/routers/init.go
@@ -37,7 +37,6 @@ func checkRunMode() {
func NewServices() {
setting.NewServices()
mailer.NewContext()
- indexer.NewContext()
}
// GlobalInit is for global configuration reload-able.
@@ -61,6 +60,7 @@ func GlobalInit() {
// Booting long running goroutines.
cron.NewContext()
+ indexer.NewContext()
models.InitSyncMirrors()
models.InitDeliverHooks()
models.InitTestPullRequests()