Skip to content

Commit

Permalink
Merge pull request #1172 from Dieterbe/minor
Browse files Browse the repository at this point in the history
Minor changes
  • Loading branch information
bai authored Oct 1, 2018
2 parents 6bfdd61 + 09c19c9 commit 7479983
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 @@ -176,7 +176,7 @@ func (client *client) Config() *Config {
func (client *client) Brokers() []*Broker {
client.lock.RLock()
defer client.lock.RUnlock()
brokers := make([]*Broker, 0)
brokers := make([]*Broker, 0, len(client.brokers))
for _, broker := range client.brokers {
brokers = append(brokers, broker)
}
Expand Down

0 comments on commit 7479983

Please sign in to comment.