mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-27 20:59:42 +08:00
avoid nil stopChan
This commit is contained in:
parent
a5874954dc
commit
f0b9e163a0
@ -24,6 +24,7 @@ func NewConsumerGroup(t *mq_pb.Topic, reblanceSeconds int32, filerClientAccessor
|
||||
topic: topic.FromPbTopic(t),
|
||||
ConsumerGroupInstances: cmap.New[*ConsumerGroupInstance](),
|
||||
filerClientAccessor: filerClientAccessor,
|
||||
stopCh: make(chan struct{}),
|
||||
}
|
||||
if conf, err := cg.filerClientAccessor.ReadTopicConfFromFiler(cg.topic); err == nil {
|
||||
var partitions []topic.Partition
|
||||
@ -53,8 +54,8 @@ func NewConsumerGroup(t *mq_pb.Topic, reblanceSeconds int32, filerClientAccessor
|
||||
Message: &mq_pb.SubscriberToSubCoordinatorResponse_Assignment_{
|
||||
Assignment: &mq_pb.SubscriberToSubCoordinatorResponse_Assignment{
|
||||
PartitionAssignment: &mq_pb.BrokerPartitionAssignment{
|
||||
Partition: adjustment.partition.ToPbPartition(),
|
||||
LeaderBroker: assignment.LeaderBroker,
|
||||
Partition: adjustment.partition.ToPbPartition(),
|
||||
LeaderBroker: assignment.LeaderBroker,
|
||||
FollowerBroker: assignment.FollowerBroker,
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user