forked from TrueCloudLab/frostfs-node
[#132] Add internal event to process cleanup
This event will be produced by new epoch handler. All cleanups should be synchronous because smart contract can't store inner ring votes forever. Therefore voting should be done in similar time interval for all inner ring nodes. Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
dfc2e81717
commit
9b97e95f82
1 changed files with 9 additions and 0 deletions
9
pkg/innerring/processors/netmap/internal_events.go
Normal file
9
pkg/innerring/processors/netmap/internal_events.go
Normal file
|
@ -0,0 +1,9 @@
|
|||
package netmap
|
||||
|
||||
// netmapCleanupTick is a event to remove offline nodes.
|
||||
type netmapCleanupTick struct {
|
||||
epoch uint64
|
||||
}
|
||||
|
||||
// MorphEvent implements Event interface.
|
||||
func (netmapCleanupTick) MorphEvent() {}
|
Loading…
Reference in a new issue