mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-06-29 00:29:05 +08:00
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>
This commit is contained in:
@ -87,3 +87,8 @@ func PushCreateRepo(authUser, owner *models.User, repoName string) (*models.Repo
|
||||
|
||||
return repo, nil
|
||||
}
|
||||
|
||||
// NewContext start repository service
|
||||
func NewContext() error {
|
||||
return initPushQueue()
|
||||
}
|
||||
|
Reference in New Issue
Block a user