Skip to content

Commit

Permalink
createtopic: default number of partitions to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
travisjeffery committed Feb 21, 2017
1 parent 537fe9e commit 6474f62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/createtopic/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
var (
brokerAddr = kingpin.Flag("brokeraddr", "Address for Broker to bind on").Default("0.0.0.0:9092").String()
topic = kingpin.Flag("topic", "Name of topic to create").String()
partitions = kingpin.Flag("partitions", "Number of partitions").Int32()
partitions = kingpin.Flag("partitions", "Number of partitions").Default("1").Int32()
)

func main() {
Expand Down

0 comments on commit 6474f62

Please sign in to comment.