diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-12-09 03:15:35 +0800 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-12-08 14:15:35 -0500 |
commit | be06dee04ce46de2da222fc9b2be4fc3b68b816d (patch) | |
tree | 01dacbca7efd24412c7762b41d34f08afcca3e87 /routers/init.go | |
parent | baf089e5b918fd967503e79022d3429b945359ef (diff) | |
download | gitea-be06dee04ce46de2da222fc9b2be4fc3b68b816d.tar.gz gitea-be06dee04ce46de2da222fc9b2be4fc3b68b816d.zip |
Move code indexer related code to a new package (#9191)
* move code indexer related code to a new package
* fix lint
* fix tests
* fix fmt
* GetMaxID support interface parameter
Diffstat (limited to 'routers/init.go')
-rw-r--r-- | routers/init.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/init.go b/routers/init.go index 447c168852..81418a4ad5 100644 --- a/routers/init.go +++ b/routers/init.go @@ -15,6 +15,7 @@ import ( "code.gitea.io/gitea/modules/cron" "code.gitea.io/gitea/modules/git" "code.gitea.io/gitea/modules/highlight" + code_indexer "code.gitea.io/gitea/modules/indexer/code" issue_indexer "code.gitea.io/gitea/modules/indexer/issues" "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/markup" @@ -102,7 +103,7 @@ func GlobalInit() { // Booting long running goroutines. cron.NewContext() issue_indexer.InitIssueIndexer(false) - models.InitRepoIndexer() + code_indexer.InitRepoIndexer() mirror_service.InitSyncMirrors() webhook.InitDeliverHooks() pull_service.Init() |