Skip to content
This repository has been archived by the owner on Jan 24, 2020. It is now read-only.

Commit

Permalink
normalize examples around emails instead of mixing payments and emails
Browse files Browse the repository at this point in the history
  • Loading branch information
celrenheit committed Dec 11, 2017
1 parent 7455a6f commit dfb05d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -143,7 +143,7 @@ defer client.Close()

// Now we produce a new message
// Notice the empty string "" in the 3th argument, meaning let sandglass choose a random partition
err := client.Produce(context.Background(), "payments", "", &sgproto.Message{
err := client.Produce(context.Background(), "emails", "", &sgproto.Message{
Value: []byte("Hello, Sandglass!"),
})
if err != nil {
Expand Down Expand Up @@ -226,8 +226,8 @@ if err != nil {
// we are choosing only one partition for demo purposes
partition := partitions[0]

// Create a new consumer using consumer group payments-sender and consumer name consumer1
consumer := c.NewConsumer(topic, partition, "payments-sender", "consumer1")
// Create a new consumer using consumer group emails-sender and consumer name consumer1
consumer := c.NewConsumer(topic, partition, "emails-sender", "consumer1")

// and consume messages
msgCh, err := consumer.Consume(context.Background())
Expand Down

0 comments on commit dfb05d7

Please sign in to comment.