MCPcopy
hub / github.com/NVIDIA/aistore / NotifyInterval

Method NotifyInterval

nl/notif.go:35–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33func (notif *NotifBase) LastNotifTime() int64 { return notif.lastNotified.Load() }
34func (notif *NotifBase) SetLastNotified(now int64) { notif.lastNotified.Store(now) }
35func (notif *NotifBase) NotifyInterval() time.Duration {
36 if notif.Interval == 0 {
37 return cmn.GCO.Get().Periodic.NotifTime.D()
38 }
39 return notif.Interval
40}
41
42func shouldNotify(n cluster.Notif) bool {
43 lastTime := n.LastNotifTime()

Callers

nothing calls this directly

Calls 2

DMethod · 0.80
GetMethod · 0.65

Tested by

no test coverage detected