1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Rename HookQueue to hookQueue (#8778)

* Rename HookQueue to hookQueue

* fix lint
This commit is contained in:
Lunny Xiao
2019-11-02 10:35:12 +08:00
committed by GitHub
parent 4b8d9e58c5
commit f518fe6662
13 changed files with 19 additions and 65 deletions

View File

@@ -159,9 +159,9 @@ func DeliverHooks() {
}
// Start listening on new hook requests.
for repoIDStr := range HookQueue.Queue() {
for repoIDStr := range hookQueue.Queue() {
log.Trace("DeliverHooks [repo_id: %v]", repoIDStr)
HookQueue.Remove(repoIDStr)
hookQueue.Remove(repoIDStr)
repoID, err := com.StrTo(repoIDStr).Int64()
if err != nil {