2021-01-28 19:43:32 +00:00
|
|
|
package settlement
|
|
|
|
|
2023-03-07 13:38:26 +00:00
|
|
|
import "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/util/logger"
|
2021-01-28 19:43:32 +00:00
|
|
|
|
|
|
|
type auditEventHandler struct {
|
|
|
|
log *logger.Logger
|
|
|
|
|
|
|
|
epoch uint64
|
|
|
|
|
|
|
|
proc AuditProcessor
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *auditEventHandler) handle() {
|
|
|
|
p.log.Info("process audit settlements")
|
|
|
|
|
|
|
|
p.proc.ProcessAuditSettlements(p.epoch)
|
|
|
|
|
|
|
|
p.log.Info("audit processing finished")
|
|
|
|
}
|