forked from TrueCloudLab/frostfs-node
[#324] ir: Measure epochs in sidechain blocks
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
b5dc28f79c
commit
19bb94cc04
8 changed files with 46 additions and 35 deletions
|
@ -5,8 +5,3 @@ 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