forked from TrueCloudLab/frostfs-node
d4bd726c25
Pass handler of audit settlement event to netmap event processor. Generate AuditEvent in during new epoch processing. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
20 lines
505 B
Go
20 lines
505 B
Go
package innerring
|
|
|
|
import (
|
|
"github.com/nspcc-dev/neofs-node/pkg/innerring/processors/settlement/audit"
|
|
"github.com/nspcc-dev/neofs-node/pkg/innerring/timers"
|
|
)
|
|
|
|
type blockTimerWrapper timers.BlockTimer
|
|
|
|
func (t *blockTimerWrapper) ResetEpochTimer() error {
|
|
return (*timers.BlockTimer)(t).Reset()
|
|
}
|
|
|
|
type auditSettlementCalculator audit.Calculator
|
|
|
|
func (s *auditSettlementCalculator) ProcessAuditSettlements(epoch uint64) {
|
|
(*audit.Calculator)(s).Calculate(&audit.CalculatePrm{
|
|
Epoch: epoch,
|
|
})
|
|
}
|