Fix router not taps function services (#860)
This commit is contained in:
@@ -84,12 +84,14 @@ func (c *Client) service() {
|
|||||||
c.tappedByUrl = make(map[string]bool)
|
c.tappedByUrl = make(map[string]bool)
|
||||||
if len(urls) > 0 {
|
if len(urls) > 0 {
|
||||||
go func() {
|
go func() {
|
||||||
for u := range c.tappedByUrl {
|
for u := range urls {
|
||||||
c._tapService(u)
|
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))
|
||||||
}()
|
}()
|
||||||
log.Printf("Tapped %v services in batch", len(urls))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user