Cleanup jobschedule channel passing

This commit is contained in:
2022-12-28 17:13:33 -07:00
parent 0287213433
commit 663306c3be
4 changed files with 18 additions and 16 deletions
+1 -2
View File
@@ -5,7 +5,6 @@ import (
"strings"
"git.ohea.xyz/cursorius/server/config"
"git.ohea.xyz/cursorius/server/jobscheduler"
"git.ohea.xyz/cursorius/server/pipeline_executor"
"github.com/go-playground/webhooks/v6/gitea"
"github.com/op/go-logging"
@@ -13,7 +12,7 @@ import (
var log = logging.MustGetLogger("cursorius-server")
func CreateWebhookHandler(runCh chan jobscheduler.Run, conf config.Config, mux *http.ServeMux) {
func CreateWebhookHandler(conf config.Config, mux *http.ServeMux) {
mux.HandleFunc("/webhook/", func(w http.ResponseWriter, r *http.Request) {
switch r.Method {
case "POST":