forked from TrueCloudLab/frostfs-node
Add Inner Ring code
This commit is contained in:
parent
dadfd90dcd
commit
b7b5079934
400 changed files with 11420 additions and 8690 deletions
12
pkg/innerring/timers/epoch.go
Normal file
12
pkg/innerring/timers/epoch.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue