Skip to content

Commit

Permalink
feat(monitor): start environment check immediately
Browse files Browse the repository at this point in the history
No need to delay the environment check.

Longhorn 10035

Signed-off-by: Derek Su <[email protected]>
(cherry picked from commit c410f5d)
  • Loading branch information
derekbit authored and mergify[bot] committed Dec 23, 2024
1 parent 799bdf0 commit a5dad03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/monitor/environment_check_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func NewEnvironmentCheckMonitor(logger logrus.FieldLogger, ds *datastore.DataSto
}

func (m *EnvironmentCheckMonitor) Start() {
if err := wait.PollUntilContextCancel(m.ctx, m.syncPeriod, false, func(context.Context) (bool, error) {
if err := wait.PollUntilContextCancel(m.ctx, m.syncPeriod, true, func(context.Context) (bool, error) {
if err := m.run(struct{}{}); err != nil {
m.logger.WithError(err).Error("Stopped monitoring environment check")
}
Expand Down

0 comments on commit a5dad03

Please sign in to comment.