Skip to content

Commit

Permalink
Add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
CAFxX committed May 15, 2016
1 parent ddb66ae commit 6170793
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"runtime"
)

// RebalanceConfig contains the configuration that drives the rebalancing.
type RebalanceConfig struct {
AllowLeaderRebalancing bool
MinReplicasForRebalancing int
Expand All @@ -15,6 +16,8 @@ type RebalanceConfig struct {
Brokers []BrokerID
}

// DefaultRebalanceConfig returns the default RebalanceConfig. These values are
// also the one used as the default values for the CLI flags.
func DefaultRebalanceConfig() RebalanceConfig {
return RebalanceConfig{
AllowLeaderRebalancing: false,
Expand Down

0 comments on commit 6170793

Please sign in to comment.