Skip to content

Commit

Permalink
Use the created Panel, not a new one.
Browse files Browse the repository at this point in the history
  • Loading branch information
rubyist committed Sep 1, 2015
1 parent 8ecef22 commit 81c7671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func NewHTTPClientWithBreaker(breaker *Breaker, timeout time.Duration, client *h
panel := NewPanel()
panel.Add(defaultBreakerName, breaker)

brclient := &HTTPClient{Client: client, Panel: NewPanel(), timeout: timeout}
brclient := &HTTPClient{Client: client, Panel: panel, timeout: timeout}
brclient.BreakerLookup = func(c *HTTPClient, val interface{}) *Breaker {
cb, _ := c.Panel.Get(defaultBreakerName)
return cb
Expand Down

0 comments on commit 81c7671

Please # to comment.