Merge pull request #5069 from AkihiroSuda/restart-fast
restart: skip Sleep() for the first iteration of the reconcilation
This commit is contained in:
		| @@ -153,10 +153,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) | ||||
| 	} | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Derek McGowan
					Derek McGowan