Fix router not taps function services (#860)

This commit is contained in:
Ta-Ching Chen
2018-08-13 19:45:49 +08:00
committed by GitHub
parent e730376e3e
commit 07ca5df8d0
+5 -3
View File
@@ -84,12 +84,14 @@ func (c *Client) service() {
c.tappedByUrl = make(map[string]bool)
if len(urls) > 0 {
go func() {
for u := range c.tappedByUrl {
c._tapService(u)
for u := range urls {
err := c._tapService(u)
if err != nil {
log.Printf("Error tapping function service address %v: %v", u, err)
}
}
log.Printf("Tapped %v services in batch", len(urls))
}()
log.Printf("Tapped %v services in batch", len(urls))
}
}
}