Skip to content

Commit

Permalink
More.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Dec 14, 2024
1 parent 14bc747 commit 72634c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion processes/consumer/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func StartConsumer(ctx context.Context, cfg config.Config, inMemDB *models.Datab
TopicToConfigFormatMap: tcFmtMap,
}

if len(msg.Key()) == 0 {
if len(msg.Key()) == 0 || string(msg.Key()) == "" {
slog.Warn("Message does not have a key", artie.KafkaMsgLogFields(kafkaMsg)...)
continue
}
Expand Down

0 comments on commit 72634c9

Please sign in to comment.