diff --git a/api/github.go b/api/github.go index f6a686a..f1dd072 100644 --- a/api/github.go +++ b/api/github.go @@ -3,7 +3,6 @@ package api import ( "mpbench/config" "mpbench/model" - "mpbench/runner" "mpbench/utils" "net/http" @@ -26,11 +25,6 @@ func GithubEventHandler(c *gin.Context) { if checkSuiteEvent.Action != "requested" && checkSuiteEvent.Action != "rerequested" { return } - - go func() { - runner.CreateGR25Runs(checkSuiteEvent.CheckSuite.HeadSha) - }() - } else if ghEventType == "check_run" { var checkRunEvent model.GithubCheckRunEvent if err := c.ShouldBindJSON(&checkRunEvent); err != nil { @@ -45,10 +39,6 @@ func GithubEventHandler(c *gin.Context) { if checkRunEvent.Action != "rerequested" { return } - - go func() { - runner.CreateGR25Runs(checkRunEvent.CheckRun.HeadSha) - }() } c.JSON(http.StatusOK, gin.H{"message": "Github event received"})