Skip to content

Commit

Permalink
Correctly resolve app ids, fixes #825
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwilkie committed Feb 5, 2016
1 parent 7dd2292 commit b758d56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion probe/appclient/app_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ func (c *appClient) controlConnection() (bool, error) {
return false, err
}
defer func() {
log.Printf("Closing control connection to %s", c.target)
conn.Close()
}()

Expand Down
3 changes: 2 additions & 1 deletion probe/appclient/multi_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func (c *multiClient) Set(hostname string, endpoints []string) {
go func(endpoint string) {
c.sema.acquire()
defer c.sema.release()
defer wg.Done()

client, err := c.clientFactory(hostname, endpoint)
if err != nil {
Expand All @@ -82,10 +83,10 @@ func (c *multiClient) Set(hostname string, endpoints []string) {
details, err := client.Details()
if err != nil {
log.Printf("Error fetching app details: %v", err)
return
}

clients <- clientTuple{details, client}
wg.Done()
}(endpoint)
}

Expand Down

0 comments on commit b758d56

Please sign in to comment.