Refactor pipeline api lister to inside listen

This commit is contained in:
2023-01-14 01:35:29 -07:00
parent b58b1ab5d9
commit 30fed27126
3 changed files with 33 additions and 9 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ func (s *ApiServer) RunCommand(
return res, nil
}
func CreateHandler(mux *http.ServeMux, getRunnerCh chan runnermanager.GetRunnerRequest) {
func CreateHandler(getRunnerCh chan runnermanager.GetRunnerRequest, mux *http.ServeMux) {
api_server := &ApiServer{
getRunnerCh: getRunnerCh,
allocatedRunners: make(map[uuid.UUID]*RunnerWrapper),