Explorar o código

also add "optional" to the other two options

Andrea Lusuardi - uovobw %!s(int64=10) %!d(string=hai) anos
pai
achega
5fb5d9f70f
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      examples/http_server/http_server.go

+ 2 - 2
examples/http_server/http_server.go

@@ -20,8 +20,8 @@ var (
 	addr      = flag.String("addr", ":8080", "The address to bind to")
 	brokers   = flag.String("brokers", os.Getenv("KAFKA_PEERS"), "The Kafka brokers to connect to, as a comma separated list")
 	verbose   = flag.Bool("verbose", false, "Turn on Sarama logging")
-	cert_file = flag.String("certificate", "", "The certificate file for client authentication")
-	key_file  = flag.String("key", "", "The key file for client authentication")
+	cert_file = flag.String("certificate", "", "The optional certificate file for client authentication")
+	key_file  = flag.String("key", "", "The optional key file for client authentication")
 	ca_file   = flag.String("ca", "", "The optional certificate authority file for TLS client authentication")
 )