YaoJusheng commented on issue #1209:
URL:
https://github.com/apache/rocketmq-client-go/issues/1209#issuecomment-3707606827
Does it mean something like the following?
```go
func (a *admin) CreateTopic(ctx context.Context, opts ...OptionCreate) error
{
cfg := defaultTopicConfigCreate()
for _, apply := range opts {
apply(&cfg)
}
if cfg.BrokerAddr == "" {
a.cli.GetNameSrv().UpdateTopicRouteInfo(DefaultCluster)
cfg.BrokerAddr =
a.cli.GetNameSrv().FindBrokerAddrByTopic(DefaultCluster)
}
// ...
```
**BTW**, What is the reason why `rocketmq-client-go` has not released a new
version? There are many problems in 2.1.2 , which sometimes make it impossible
to use directly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]