Skip to content

Commit

Permalink
empty subcribed topic is allowed to start (#969)
Browse files Browse the repository at this point in the history
Co-authored-by: 筱瑜 <[email protected]>
  • Loading branch information
NeonToo and 筱瑜 authored Apr 28, 2023
1 parent ded5335 commit af75f77
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 @@ -540,7 +540,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 af75f77

Please sign in to comment.