remove isForPublish from LookupTopicBrokers

also adds a return parameter: whether the topic exists or not
This commit is contained in:
chrislu
2024-01-16 08:52:42 -08:00
parent 3795d8dca8
commit 34a78ffad0
7 changed files with 283 additions and 298 deletions

View File

@@ -38,7 +38,6 @@ func (p *TopicPublisher) doLookupAndConnect(brokerAddress string) error {
Namespace: p.namespace,
Name: p.topic,
},
IsForPublish: true,
})
glog.V(0).Infof("lookup1 topic %s/%s: %v", p.namespace, p.topic, lookupResp)
if p.config.CreateTopic && err != nil {
@@ -58,7 +57,6 @@ func (p *TopicPublisher) doLookupAndConnect(brokerAddress string) error {
Namespace: p.namespace,
Name: p.topic,
},
IsForPublish: true,
})
glog.V(0).Infof("lookup2 topic %s/%s: %v", p.namespace, p.topic, lookupResp)
}