Skip to content

Commit

Permalink
goroutine for issuecomment as well (#1821)
Browse files Browse the repository at this point in the history
  • Loading branch information
motatoes authored Nov 13, 2024
1 parent a1e5ce3 commit f7e044d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/controllers/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (d DiggerController) GithubAppWebHook(c *gin.Context) {
c.String(http.StatusOK, "OK")
return
}
handleIssueCommentEvent(gh, event, d.CiBackendProvider, appId64, d.GithubWebhookPostIssueCommentHooks)
go handleIssueCommentEvent(gh, event, d.CiBackendProvider, appId64, d.GithubWebhookPostIssueCommentHooks)
case *github.PullRequestEvent:
log.Printf("Got pull request event for %d", *event.PullRequest.ID)
// run it as a goroutine to avoid timeouts
Expand Down

0 comments on commit f7e044d

Please sign in to comment.