Commit 82a20788 authored by Amos Wenger's avatar Amos Wenger

Expose CaseFixerStats in ValidatorContext

parent e84ea06c
Pipeline #14756 passed with stage
in 6 minutes and 8 seconds
......@@ -46,6 +46,8 @@ type ValidatorContext struct {
// internal
Wounds chan *Wound
WoundsConsumer WoundsConsumer
CaseFixStats *lake.CaseFixStats
}
const floatIntFactor = 10000.0
......@@ -118,8 +120,10 @@ func (vctx *ValidatorContext) Validate(ctx context.Context, target string, signa
return err
}
if cfp, ok := targetPool.(lake.CaseFixerPool); ok {
vctx.CaseFixStats = &lake.CaseFixStats{}
err := cfp.FixExistingCase(lake.CaseFixParams{
Consumer: vctx.Consumer,
Stats: vctx.CaseFixStats,
})
if err != nil {
return err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment