Skip to content

Commit

Permalink
restart: skip Sleep() for the first iteration of the reconcilation
Browse files Browse the repository at this point in the history
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
  • Loading branch information
AkihiroSuda committed Feb 25, 2021
1 parent af4c55f commit 6ab6eaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/restart/monitor/monitor.go
Expand Up @@ -152,10 +152,10 @@ func (m *monitor) run(interval time.Duration) {
interval = 10 * time.Second
}
for {
time.Sleep(interval)
if err := m.reconcile(context.Background()); err != nil {
logrus.WithError(err).Error("reconcile")
}
time.Sleep(interval)
}
}

Expand Down

0 comments on commit 6ab6eaa

Please sign in to comment.