Skip to content

Commit

Permalink
Revert "Extend timeout if candidate port is lost in any case"
Browse files Browse the repository at this point in the history
This reverts commit 7c77ed2.

The latest commit is not necessary since the detector has already 5 seconds of timeout.
  • Loading branch information
cmaglie committed Aug 31, 2023
1 parent 7c77ed2 commit 0ff1377
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions commands/upload/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -575,9 +575,6 @@ func detectUploadPort(
waitForUploadPort = true
timeout = time.After(5 * time.Second)
log.Debug("User-specified port has been disconnected, now waiting for upload port, timeout extended by 5 seconds")
} else {
timeout = time.After(time.Second)
log.Debug("Candidate port has been disconnected, timeout extended by 1 second")
}
continue
}
Expand Down

0 comments on commit 0ff1377

Please sign in to comment.