AS
Size: a a a
АД
AR
ВС
AS
c.runAppWithRetry блокирует итерацию?tick := time.Tick(time.Hour)
for range tick {
runForDate := date.StartOfCurrentHour()
c.runAppWithRetry(runForDate)
}c.runAppWithRetry? это из gin?p
AS
DR
func (c *App) runAppWithRetry(runForDate time.Time) {
err := c.runApp(runForDate)
if err != nil {
tick := time.Tick(c.onFailRerunAfter)
for range tick {
err := c.runApp(runForDate)
if err == nil {
break
}
}
}
}AS
AS
AS
AS