2021-01-28 19:43:32 +00:00
|
|
|
package settlement
|
|
|
|
|
2022-12-23 17:35:35 +00:00
|
|
|
import "github.com/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")
|
|
|
|
}
|