frostfs-node/pkg/innerring/timers/epoch.go
Stanislav Bogatyrev b7b5079934 Add Inner Ring code
2020-07-24 17:07:37 +03:00

12 lines
320 B
Go

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)
}