Commit 7ac648e4 authored by Kamil Trzciński's avatar Kamil Trzciński

Fix compilation errors

parent beb58a88
Pipeline #745253 passed with stage
......@@ -27,7 +27,7 @@ func (b *buildsHelper) acquire(runner *runnerAcquire) bool {
b.counts = make(map[string]int)
}
b.counts[runner.Token]++
return
return true
}
func (b *buildsHelper) release(runner *runnerAcquire) bool {
......
......@@ -117,7 +117,7 @@ func (mr *RunCommand) processRunner(id int, runner *runnerAcquire) (err error) {
defer trace.Fail(err)
// Create a new build
build := common.Build{
build := &common.Build{
GetBuildResponse: *buildData,
Runner: &runner.RunnerConfig,
ExecutorData: runner.data,
......@@ -195,7 +195,6 @@ func (mr *RunCommand) checkConfig() (err error) {
}
func (mr *RunCommand) Start(s service.Service) error {
mr.acquires = []*common.Build{}
mr.abortBuilds = make(chan os.Signal)
mr.runSignal = make(chan os.Signal, 1)
mr.reloadSignal = make(chan os.Signal, 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment