Have to fix the calls too

This commit is contained in:
Kevin Cotugno 2017-09-28 22:03:34 -07:00
parent 7270c66f1e
commit b1c3573e8f

View File

@ -26,7 +26,7 @@ func (v *validator) validate(products ...string) {
v.done = make(chan bool) v.done = make(chan bool)
go func() { go func() {
v.emit_products(products...) v.emitProducts(products...)
var done bool var done bool
@ -35,7 +35,7 @@ func (v *validator) validate(products ...string) {
case <-v.done: case <-v.done:
done = true done = true
case <-v.ticker.C: 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) { func (v *validator) emitProducts(products ...string) {
for _, p := range products { for _, p := range products {
go v.validate_product(p) go v.validateProduct(p)
} }
} }