Skip to content

Commit

Permalink
fixed linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Aug 2, 2023
1 parent edc3a56 commit 6a02899
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/upload/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ func runProgramAction(pme *packagemanager.Explorer,
// expected port change then run the detector.
updatedUploadPort := f.NewFuture[*rpc.Port]()
if uploadProperties.GetBoolean("upload.wait_for_upload_port") && watch != nil {
go detectUploadPort(port, watch, uploadCtx, updatedUploadPort)
go detectUploadPort(uploadCtx, port, watch, updatedUploadPort)
} else {
updatedUploadPort.Send(nil)
go f.DiscardCh(watch)
Expand Down Expand Up @@ -522,7 +522,7 @@ func runProgramAction(pme *packagemanager.Explorer,
return updatedUploadPort.Await(), nil
}

func detectUploadPort(uploadPort *rpc.Port, watch <-chan *rpc.BoardListWatchResponse, uploadCtx context.Context, result f.Future[*rpc.Port]) {
func detectUploadPort(uploadCtx context.Context, uploadPort *rpc.Port, watch <-chan *rpc.BoardListWatchResponse, result f.Future[*rpc.Port]) {
log := logrus.WithField("task", "port_detection")
log.Tracef("Detecting new board port after upload")

Expand Down

0 comments on commit 6a02899

Please sign in to comment.