aboutsummaryrefslogtreecommitdiffstats
path: root/routers/init.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-01-25 16:19:14 +0800
committerGitHub <noreply@github.com>2017-01-25 16:19:14 +0800
commit2a80e5a81eeec260840a00f09733c203f2572eea (patch)
tree3b7f354cf7044692f70a113253d5dfd2fbcde567 /routers/init.go
parent634ac9c5afd3f8aa8a5c72a2698f33e10e8e6b5d (diff)
downloadgitea-2a80e5a81eeec260840a00f09733c203f2572eea.tar.gz
gitea-2a80e5a81eeec260840a00f09733c203f2572eea.zip
bug fixed caused by #530 (#755)
Diffstat (limited to 'routers/init.go')
-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()