Skip to content

Commit

Permalink
add space for each message
Browse files Browse the repository at this point in the history
  • Loading branch information
wuriyanto48 committed Apr 29, 2019
1 parent 29909d8 commit 1942514
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ func (handler *SubscriberHandler) ConsumeClaim(session sarama.ConsumerGroupSessi
// The `ConsumeClaim` itself is called within a goroutine, see:
// https://github.com/Shopify/sarama/blob/master/consumer_group.go#L27-L29
for message := range claim.Messages() {
log.Printf("\nMessage = %s\ntopic = %s", string(message.Value), message.Topic)
fmt.Println()
log.Printf("\nMessage = %s\nTopic = %s", string(message.Value), message.Topic)
session.MarkMessage(message, "")
}

Expand Down

0 comments on commit 1942514

Please sign in to comment.