Skip to content

Commit

Permalink
simpler shorter interval
Browse files Browse the repository at this point in the history
  • Loading branch information
dangra committed Jan 25, 2023
1 parent 82c0bf9 commit c82c291
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions internal/command/deploy/machines.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,8 @@ func (lm *leasableMachine) WaitForHealthchecksToPass(ctx context.Context, timeou

shortestInterval := 120 * time.Second
for _, c := range lm.Machine().Config.Checks {
if c.Interval != nil {
if c.Interval.Duration < shortestInterval {
shortestInterval = c.Interval.Duration
}
if c.Interval != nil && c.Interval.Duration < shortestInterval {
shortestInterval = c.Interval.Duration
}
}
b := &backoff.Backoff{
Expand Down

0 comments on commit c82c291

Please sign in to comment.