Преглед на файлове

Merge pull request #322 from Shopify/fix_consumer_examples

Fix Consumer example function names to follow convention
Willem van Bergen преди 10 години
родител
ревизия
d60bf37315
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      consumer_test.go

+ 2 - 2
consumer_test.go

@@ -243,7 +243,7 @@ func TestConsumerRebalancingMultiplePartitions(t *testing.T) {
 	seedBroker.Close()
 }
 
-func ExampleConsumerWithSelect() {
+func ExampleConsumer_usingSelect() {
 	master, err := NewConsumer([]string{"localhost:9092"}, nil)
 	if err != nil {
 		panic(err)
@@ -285,7 +285,7 @@ consumerLoop:
 	fmt.Println("Got", msgCount, "messages.")
 }
 
-func ExampleConsumerWithGoroutines() {
+func ExampleConsumer_usingGoroutines() {
 	master, err := NewConsumer([]string{"localhost:9092"}, nil)
 	if err != nil {
 		panic(err)