Skip to content

Commit

Permalink
Use else if
Browse files Browse the repository at this point in the history
  • Loading branch information
lixmal committed Jun 21, 2024
1 parent c309917 commit f2bcccd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions client/internal/routemanager/dynamic/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,9 @@ func (r *Route) startResolver(ctx context.Context) {
if interval > failureInterval {
ticker.Reset(failureInterval)
}
} else {
} else if interval > failureInterval {
// Reset to the original interval if the update succeeds
if interval > failureInterval {
ticker.Reset(interval)
}
ticker.Reset(interval)
}
}
}
Expand Down

0 comments on commit f2bcccd

Please sign in to comment.