Rename runner->jobrunner to fix binary name clash

This commit is contained in:
2022-10-23 16:54:38 -06:00
parent 017e41e12e
commit feb7f68488
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
package runner package jobrunner
import ( import (
"bytes" "bytes"
+3 -3
View File
@@ -4,7 +4,7 @@ import (
"context" "context"
"fmt" "fmt"
"git.ohea.xyz/cursorius/runner/config" "git.ohea.xyz/cursorius/runner/config"
"git.ohea.xyz/cursorius/runner/runner" "git.ohea.xyz/cursorius/runner/jobrunner"
"github.com/op/go-logging" "github.com/op/go-logging"
"nhooyr.io/websocket" "nhooyr.io/websocket"
"nhooyr.io/websocket/wsjson" "nhooyr.io/websocket/wsjson"
@@ -70,7 +70,7 @@ func main() {
} }
for { for {
var job runner.Job var job jobrunner.Job
err = wsjson.Read(ctx, conn, &job) err = wsjson.Read(ctx, conn, &job)
if err != nil { if err != nil {
log.Fatalf("Could not receive from connection: %v", err) log.Fatalf("Could not receive from connection: %v", err)
@@ -78,7 +78,7 @@ func main() {
} }
log.Infof("Received job from server: id: %v, URL: %v", job.Id, job.URL) log.Infof("Received job from server: id: %v, URL: %v", job.Id, job.URL)
err = runner.RunJob(job, configData.Config.WorkingDir) err = jobrunner.RunJob(job, configData.Config.WorkingDir)
if err != nil { if err != nil {
log.Errorf("Could not run job: %v", err) log.Errorf("Could not run job: %v", err)
} }