From 0bf5424a2ece6614fd77e88ce1b169b2986a0622 Mon Sep 17 00:00:00 2001 From: chrislu Date: Sun, 28 Jan 2024 13:09:30 -0800 Subject: [PATCH] adjust visibility --- weed/mq/client/pub_client/publisher.go | 2 +- weed/mq/client/pub_client/scheduler.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/mq/client/pub_client/publisher.go b/weed/mq/client/pub_client/publisher.go index 68082a70f..2bf866395 100644 --- a/weed/mq/client/pub_client/publisher.go +++ b/weed/mq/client/pub_client/publisher.go @@ -45,7 +45,7 @@ func NewTopicPublisher(config *PublisherConfiguration) *TopicPublisher { wg := sync.WaitGroup{} wg.Add(1) go func() { - if err := tp.StartSchedulerThread(&wg); err != nil { + if err := tp.startSchedulerThread(&wg); err != nil { log.Println(err) return } diff --git a/weed/mq/client/pub_client/scheduler.go b/weed/mq/client/pub_client/scheduler.go index 12cbe303d..c0850f682 100644 --- a/weed/mq/client/pub_client/scheduler.go +++ b/weed/mq/client/pub_client/scheduler.go @@ -28,7 +28,7 @@ type EachPartitionPublishJob struct { generation int 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 { return fmt.Errorf("configure topic %s: %v", p.config.Topic, err)