Removed debug logs

This commit is contained in:
Milos Gajdos
2019-07-09 15:55:39 +01:00
parent 70665e5a7d
commit c5fb409760
3 changed files with 2 additions and 42 deletions

View File

@@ -6,7 +6,6 @@ import (
"sync"
"github.com/google/uuid"
"github.com/micro/go-log"
"github.com/olekukonko/tablewriter"
)
@@ -209,16 +208,12 @@ func (t *table) sendEvent(r *Event) {
t.RLock()
defer t.RUnlock()
log.Logf("sending event to %d registered table watchers", len(t.w))
for _, w := range t.w {
select {
case w.resChan <- r:
case <-w.done:
}
}
log.Logf("sending event done")
}
// Size returns the size of the routing table

View File

@@ -6,7 +6,6 @@ import (
"strings"
"time"
"github.com/micro/go-log"
"github.com/olekukonko/tablewriter"
)
@@ -101,7 +100,6 @@ func (w *tableWatcher) Next() (*Event, error) {
case res.Route.Service, "*":
return res, nil
default:
log.Logf("no table watcher available to receive the event")
continue
}
case <-w.done: