frostfs-node/pkg/innerring/timers/epoch.go

13 lines
320 B
Go
Raw Normal View History

2020-07-24 13:54:03 +00:00
package timers
// NewEpochTick is a new epoch local ticker event.
type NewEpochTick struct{}
// MorphEvent implements Event interface.
func (NewEpochTick) MorphEvent() {}
// ResetEpochTimer to start it again when event has been processed.
func (t *Timers) ResetEpochTimer() {
t.epoch.timer.Reset(t.epoch.duration)
}