1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-03 09:07:19 +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

@ -50,8 +50,6 @@ func NewPullRequest(repo *models.Repository, pull *models.Issue, labelIDs []int6
Sender: pull.Poster.APIFormat(),
}); err != nil {
log.Error("PrepareWebhooks: %v", err)
} else {
go webhook.HookQueue.Add(repo.ID)
}
return nil
@ -125,7 +123,6 @@ func AddTestPullRequestTask(doer *models.User, repoID int64, branch string, isSy
log.Error("PrepareWebhooks [pull_id: %v]: %v", pr.ID, err)
continue
}
go webhook.HookQueue.Add(pr.Issue.Repo.ID)
}
}