未验证 提交 88a2b2b0 编写于 作者: X Xiangyu Wang 提交者: GitHub

[skip ci]Improve error message in rocksmq (#10195)

Signed-off-by: NXiangyu Wang <xiangyu.wang@zilliz.com>
上级 afa6eeec
......@@ -57,7 +57,7 @@ func (c *client) CreateProducer(options ProducerOptions) (Producer, error) {
}
if reflect.ValueOf(c.server).IsNil() {
return nil, newError(0, "rmq server is nil")
return nil, newError(0, "Rmq server is nil")
}
// Create a topic in rocksmq, ignore if topic exists
err = c.server.CreateTopic(options.Topic)
......@@ -72,7 +72,7 @@ func (c *client) CreateProducer(options ProducerOptions) (Producer, error) {
func (c *client) Subscribe(options ConsumerOptions) (Consumer, error) {
// Create a consumer
if reflect.ValueOf(c.server).IsNil() {
return nil, newError(0, "rmq server is nil")
return nil, newError(0, "Rmq server is nil")
}
if exist, con := c.server.ExistConsumerGroup(options.Topic, options.SubscriptionName); exist {
log.Debug("ConsumerGroup already existed", zap.Any("topic", options.Topic), zap.Any("SubscriptionName", options.SubscriptionName))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册