Have to fix the calls too
This commit is contained in:
parent
7270c66f1e
commit
b1c3573e8f
@ -26,7 +26,7 @@ func (v *validator) validate(products ...string) {
|
||||
v.done = make(chan bool)
|
||||
|
||||
go func() {
|
||||
v.emit_products(products...)
|
||||
v.emitProducts(products...)
|
||||
|
||||
var done bool
|
||||
|
||||
@ -35,7 +35,7 @@ func (v *validator) validate(products ...string) {
|
||||
case <-v.done:
|
||||
done = true
|
||||
case <-v.ticker.C:
|
||||
v.emit_products(products...)
|
||||
v.emitProducts(products...)
|
||||
}
|
||||
}
|
||||
|
||||
@ -46,7 +46,7 @@ func (v *validator) validate(products ...string) {
|
||||
|
||||
func (v *validator) emitProducts(products ...string) {
|
||||
for _, p := range products {
|
||||
go v.validate_product(p)
|
||||
go v.validateProduct(p)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user