This commit is contained in:
chrislu 2024-01-16 08:40:45 -08:00
parent dd1ec70e62
commit f782165638

View file

@ -50,7 +50,7 @@ func (balancer *Balancer) LookupOrAllocateTopicPartitions(topic *mq_pb.Topic, pu
if balancer.Brokers.IsEmpty() {
return nil, ErrNoBroker
}
assignments = allocateTopicPartitions(balancer.Brokers, partitionCount)
assignments = AllocateTopicPartitions(balancer.Brokers, partitionCount)
balancer.OnPartitionChange(topic, assignments)
return
}