Skip to content

Commit 9884730

Browse files
authored
Merge pull request #5069 from AkihiroSuda/restart-fast
restart: skip Sleep() for the first iteration of the reconcilation
2 parents 4379557 + 6ab6eaa commit 9884730

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
@@ -153,10 +153,10 @@ func (m *monitor) run(interval time.Duration) {
153153
interval = 10 * time.Second
154154
}
155155
for {
156-
time.Sleep(interval)
157156
if err := m.reconcile(context.Background()); err != nil {
158157
logrus.WithError(err).Error("reconcile")
159158
}
159+
time.Sleep(interval)
160160
}
161161
}
162162

0 commit comments

Comments
 (0)