Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions cmd/pro/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ func (cmd *StartCmd) waitForLoftDocker(ctx context.Context, containerID string)
if cmd.NoTunnel {
return "", fmt.Errorf(
"%w: %s",
ErrLoftNotReachable,
ErrPlatformNotReachable,
"cannot connect to Devsy Pro as it has no exposed port and --no-tunnel is enabled",
)
}
Expand Down Expand Up @@ -2174,7 +2174,8 @@ func getHelmWorkdir(chartName string) (string, error) {

var (
ErrMissingContainer = errors.New("missing container")
ErrLoftNotReachable = errors.New("Devsy Pro is not reachable")
//nolint:staticcheck // ST1005: "Devsy Pro" is a proper noun
ErrPlatformNotReachable = errors.New("Devsy Pro is not reachable")
)

type ContainerDetails struct {
Expand Down
5 changes: 1 addition & 4 deletions pkg/tunnel/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,7 @@ func RunServices(ctx context.Context, opts RunServicesOptions) error {
Factor: retryFactor,
Jitter: retryJitter,
}, func(err error) bool {
if ctx.Err() != nil {
return false
}
return true
return ctx.Err() == nil
}, func() error {
return runServicesIteration(ctx, opts, forwardedPorts, resolver)
})
Expand Down
Loading