mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
go fmt
This commit is contained in:
parent
ee1c9bc314
commit
e0727071c8
|
@ -32,6 +32,7 @@ type Balancer struct {
|
||||||
// Collected from all brokers when they connect to the broker leader
|
// 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
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewBalancer() *Balancer {
|
func NewBalancer() *Balancer {
|
||||||
return &Balancer{
|
return &Balancer{
|
||||||
Brokers: cmap.New[*BrokerStats](),
|
Brokers: cmap.New[*BrokerStats](),
|
||||||
|
|
|
@ -6,6 +6,7 @@ import (
|
||||||
"github.com/seaweedfs/seaweedfs/weed/mq/topic"
|
"github.com/seaweedfs/seaweedfs/weed/mq/topic"
|
||||||
"github.com/seaweedfs/seaweedfs/weed/pb/mq_pb"
|
"github.com/seaweedfs/seaweedfs/weed/pb/mq_pb"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ConsumerGroupInstance struct {
|
type ConsumerGroupInstance struct {
|
||||||
InstanceId string
|
InstanceId string
|
||||||
// the consumer group instance may not have an active partition
|
// the consumer group instance may not have an active partition
|
||||||
|
|
|
@ -6,7 +6,6 @@ import (
|
||||||
"github.com/seaweedfs/seaweedfs/weed/pb/mq_pb"
|
"github.com/seaweedfs/seaweedfs/weed/pb/mq_pb"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
type TopicConsumerGroups struct {
|
type TopicConsumerGroups struct {
|
||||||
// map a consumer group name to a consumer group
|
// map a consumer group name to a consumer group
|
||||||
ConsumerGroups cmap.ConcurrentMap[string, *ConsumerGroup]
|
ConsumerGroups cmap.ConcurrentMap[string, *ConsumerGroup]
|
||||||
|
|
Loading…
Reference in a new issue