Throttled determines whether this update should be throttled, based on the given earliest time of the next update. The caller should determine how often updates should be throttled. An Update with Force=true is never throttled.
(next time.Time)
| 31 | // given earliest time of the next update. The caller should determine how often |
| 32 | // updates should be throttled. An Update with Force=true is never throttled. |
| 33 | func (u *Update) Throttled(next time.Time) bool { |
| 34 | return !(u.Force || u.At.After(next)) |
| 35 | } |