Skip to content

Commit

Permalink
empty subcribed topic is allowed to start
Browse files Browse the repository at this point in the history
  • Loading branch information
筱瑜 committed Dec 9, 2022
1 parent 0742aac commit 28c9461
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion consumer/push_consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,9 @@ func (pc *pushConsumer) validate() error {
}

if len(pc.subscribedTopic) == 0 {
return errors.New("number of subscribed topics is 0.")
rlog.Warning("not subscribe any topic yet", map[string]interface{}{
rlog.LogKeyConsumerGroup: pc.consumerGroup,
})
}

if pc.option.ConsumeConcurrentlyMaxSpan < 1 || pc.option.ConsumeConcurrentlyMaxSpan > 65535 {
Expand Down

0 comments on commit 28c9461

Please sign in to comment.