Skip to content

Commit 6ab6eaa

Browse files
committed
restart: skip Sleep() for the first iteration of the reconcilation
Signed-off-by: Akihiro Suda <[email protected]>
1 parent af4c55f commit 6ab6eaa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

runtime/restart/monitor/monitor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,10 @@ func (m *monitor) run(interval time.Duration) {
152152
interval = 10 * time.Second
153153
}
154154
for {
155-
time.Sleep(interval)
156155
if err := m.reconcile(context.Background()); err != nil {
157156
logrus.WithError(err).Error("reconcile")
158157
}
158+
time.Sleep(interval)
159159
}
160160
}
161161

0 commit comments

Comments
 (0)