Browse Source

go fmt

pull/5132/head
chrislu 1 year ago
parent
commit
e0727071c8
  1. 1
      weed/mq/pub_balancer/balancer.go
  2. 1
      weed/mq/sub_coordinator/consumer_group.go
  3. 1
      weed/mq/sub_coordinator/coordinator.go

1
weed/mq/pub_balancer/balancer.go

@ -32,6 +32,7 @@ type Balancer struct {
// Collected from all brokers when they connect to the broker leader
TopicToBrokers cmap.ConcurrentMap[string, *PartitionSlotToBrokerList] // key: topic name
}
func NewBalancer() *Balancer {
return &Balancer{
Brokers: cmap.New[*BrokerStats](),

1
weed/mq/sub_coordinator/consumer_group.go

@ -6,6 +6,7 @@ import (
"github.com/seaweedfs/seaweedfs/weed/mq/topic"
"github.com/seaweedfs/seaweedfs/weed/pb/mq_pb"
)
type ConsumerGroupInstance struct {
InstanceId string
// the consumer group instance may not have an active partition

1
weed/mq/sub_coordinator/coordinator.go

@ -6,7 +6,6 @@ import (
"github.com/seaweedfs/seaweedfs/weed/pb/mq_pb"
)
type TopicConsumerGroups struct {
// map a consumer group name to a consumer group
ConsumerGroups cmap.ConcurrentMap[string, *ConsumerGroup]

Loading…
Cancel
Save