Skip to content

Commit 28db959

Browse files
committed
.
1 parent 8bcc2bd commit 28db959

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

actionsrunner/runner.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ func runJob(runnerenv RunnerEnvironment, joblock *sync.Mutex, vssConnection *pro
528528
con := *vssConnection
529529
go func() {
530530
for {
531-
renewErr := renewJob(jobctx, runServiceURL, jobreq, con, instance)
531+
renewErr := renewJob(jobctx, runServiceURL, jobreq, &con, instance)
532532
if renewErr != nil {
533533
if errors.Is(renewErr, context.Canceled) {
534534
return
@@ -615,7 +615,7 @@ func runJob(runnerenv RunnerEnvironment, joblock *sync.Mutex, vssConnection *pro
615615
}()
616616
}
617617

618-
func renewJob(jobctx context.Context, runServiceURL string, jobreq *protocol.AgentJobRequestMessage, con protocol.VssConnection, instance *runnerconfiguration.RunnerInstance) error {
618+
func renewJob(jobctx context.Context, runServiceURL string, jobreq *protocol.AgentJobRequestMessage, con *protocol.VssConnection, instance *runnerconfiguration.RunnerInstance) error {
619619
if runServiceURL != "" {
620620
jobVssConnection, _, conErr := jobreq.GetConnection("SystemVssConnection")
621621
if conErr != nil {

0 commit comments

Comments
 (0)