MCPcopy
hub / github.com/git-lfs/git-lfs / Throttled

Method Throttled

tasklog/task.go:33–35  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
33func (u *Update) Throttled(next time.Time) bool {
34 return !(u.Force || u.At.After(next))
35}

Callers 1

logTaskMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected