go fmt
This commit is contained in:
@@ -31,10 +31,10 @@ const (
|
||||
type Balancer struct {
|
||||
Brokers cmap.ConcurrentMap[string, *BrokerStats] // key: broker address
|
||||
// Collected from all brokers when they connect to the broker leader
|
||||
TopicToBrokers cmap.ConcurrentMap[string, *PartitionSlotToBrokerList] // key: topic name
|
||||
TopicToBrokers cmap.ConcurrentMap[string, *PartitionSlotToBrokerList] // key: topic name
|
||||
OnPartitionChange func(topic *mq_pb.Topic, assignments []*mq_pb.BrokerPartitionAssignment)
|
||||
OnAddBroker func(broker string, brokerStats *BrokerStats)
|
||||
OnRemoveBroker func(broker string, brokerStats *BrokerStats)
|
||||
OnAddBroker func(broker string, brokerStats *BrokerStats)
|
||||
OnRemoveBroker func(broker string, brokerStats *BrokerStats)
|
||||
}
|
||||
|
||||
func NewBalancer() *Balancer {
|
||||
|
||||
Reference in New Issue
Block a user