From 07ca5df8d0597e210df88dc9642b18203be8053a Mon Sep 17 00:00:00 2001 From: Ta-Ching Chen Date: Mon, 13 Aug 2018 19:45:49 +0800 Subject: [PATCH] Fix router not taps function services (#860) --- executor/client/client.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/executor/client/client.go b/executor/client/client.go index 51554c3b..6b5ec481 100644 --- a/executor/client/client.go +++ b/executor/client/client.go @@ -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)) } } }