(emptyStartedAt time.Time)
| 139 | } |
| 140 | |
| 141 | func nextEmptyPollDelay(emptyStartedAt time.Time) time.Duration { |
| 142 | if emptyStartedAt.IsZero() || time.Since(emptyStartedAt) < emptyPollBackoffAfter { |
| 143 | return emptyPollInterval |
| 144 | } |
| 145 | return emptyPollBackoffInterval |
| 146 | } |
| 147 | |
| 148 | func (m statusModel) nextStatusPollDelay() time.Duration { |
| 149 | if len(m.instances) == 0 { |
no outgoing calls