Commit Graph

5 Commits (565eb1811c67a8df89a22d65f5e725f88470de6d)

Author SHA1 Message Date
Lunny Xiao 89b4e0477b
Refactor code indexer ()
* Refactor code indexer

* fix test

* fix test

* refactor code indexer

* fix import

* improve code

* fix typo

* fix test and make code clean

* fix lint
zeripath e3c3b33ea7
Graceful: Xorm, RepoIndexer, Cron and Others ()
* Change graceful to use a singleton obtained through GetManager instead of a global.
* Graceful: Make TestPullRequests shutdownable
* Graceful: Make the cron tasks graceful
* Graceful: AddTestPullRequest run in graceful ctx
* Graceful: SyncMirrors shutdown
* Graceful: SetDefaultContext for Xorm to be HammerContext
* Avoid starting graceful for migrate commands and checkout
* Graceful: DeliverHooks now can be shutdown
* Fix multiple syncing errors in modules/sync/UniqueQueue &  Make UniqueQueue closable
* Begin the process of making the repo indexer shutdown gracefully
zeripath 2904abdc22 DefaultBranch needs to be prefixed by BranchPrefix ()
Lunny Xiao 50da9f7dae Move modules/indexer to modules/indexer/code ()
Lunny Xiao be06dee04c Move code indexer related code to a new package ()
* move code indexer related code to a new package

* fix lint

* fix tests

* fix fmt

* GetMaxID support interface parameter