From b1c3573e8f52a0b8e064e083ecfc017563a873da Mon Sep 17 00:00:00 2001 From: Kevin Cotugno Date: Thu, 28 Sep 2017 22:03:34 -0700 Subject: [PATCH] Have to fix the calls too --- cmd/watcher/validator.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/watcher/validator.go b/cmd/watcher/validator.go index d36f92e..8306b72 100644 --- a/cmd/watcher/validator.go +++ b/cmd/watcher/validator.go @@ -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) } }