mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-23 12:53:36 +08:00
adjust visibility
This commit is contained in:
@@ -45,7 +45,7 @@ func NewTopicPublisher(config *PublisherConfiguration) *TopicPublisher {
|
|||||||
wg := sync.WaitGroup{}
|
wg := sync.WaitGroup{}
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
go func() {
|
go func() {
|
||||||
if err := tp.StartSchedulerThread(&wg); err != nil {
|
if err := tp.startSchedulerThread(&wg); err != nil {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@@ -28,7 +28,7 @@ type EachPartitionPublishJob struct {
|
|||||||
generation int
|
generation int
|
||||||
inputQueue *buffered_queue.BufferedQueue[*mq_pb.DataMessage]
|
inputQueue *buffered_queue.BufferedQueue[*mq_pb.DataMessage]
|
||||||
}
|
}
|
||||||
func (p *TopicPublisher) StartSchedulerThread(wg *sync.WaitGroup) error {
|
func (p *TopicPublisher) startSchedulerThread(wg *sync.WaitGroup) error {
|
||||||
|
|
||||||
if err := p.doEnsureConfigureTopic(); err != nil {
|
if err := p.doEnsureConfigureTopic(); err != nil {
|
||||||
return fmt.Errorf("configure topic %s: %v", p.config.Topic, err)
|
return fmt.Errorf("configure topic %s: %v", p.config.Topic, err)
|
||||||
|
Reference in New Issue
Block a user