2021-01-28 19:43:32 +00:00
|
|
|
package settlement
|
|
|
|
|
2023-04-12 14:35:10 +00:00
|
|
|
import (
|
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-node/internal/logs"
|
|
|
|
"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() {
|
2023-04-12 14:35:10 +00:00
|
|
|
p.log.Info(logs.SettlementProcessAuditSettlements)
|
2021-01-28 19:43:32 +00:00
|
|
|
|
|
|
|
p.proc.ProcessAuditSettlements(p.epoch)
|
|
|
|
|
2023-04-12 14:35:10 +00:00
|
|
|
p.log.Info(logs.SettlementAuditProcessingFinished)
|
2021-01-28 19:43:32 +00:00
|
|
|
}
|