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 72634c9 commit 00e776d
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 || string(msg.Key()) == "" {
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 00e776d

Please sign in to comment.