fix: remove usage of core

This commit is contained in:
Jason Song
2022-10-20 18:43:20 +08:00
parent 6cdbf3e986
commit dca2ca2f47
5 changed files with 6 additions and 210 deletions

View File

@ -8,14 +8,11 @@ import (
"net/http"
"code.gitea.io/gitea/routers/api/bots/runner"
"code.gitea.io/gitea/routers/api/bots/scheduler/queue"
"gitea.com/gitea/proto-go/runner/v1/runnerv1connect"
)
func RunnerRoute() (string, http.Handler) {
runnerService := &runner.Service{
Scheduler: queue.New(),
}
runnerService := &runner.Service{}
return runnerv1connect.NewRunnerServiceHandler(
runnerService,