Skip to content

Commit

Permalink
Update validator.go
Browse files Browse the repository at this point in the history
  • Loading branch information
denopink authored Jan 16, 2024
1 parent 5bc460a commit 32da0ab
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions wrpvalidator/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,6 @@ func (vs Validators) AddFunc(vf ...ValidatorFunc) Validators {
return vs
}

func (vs Validators) AddFuncWithMetrics(vf ...ValidatorWithMetricsFunc) Validators {
for _, v := range vf {
if v != nil {
vs = append(vs, v)
}
}

return vs
}

// ValidatorFunc is a WRP validator that takes messages and validates them
// against functions.
type ValidatorFunc func(wrp.Message, prometheus.Labels) error
Expand Down

0 comments on commit 32da0ab

Please sign in to comment.