|
@ -47,8 +47,7 @@ func main() { |
|
|
flag.Parse() |
|
|
flag.Parse() |
|
|
config := &pub_client.PublisherConfiguration{ |
|
|
config := &pub_client.PublisherConfiguration{ |
|
|
Topic: topic.NewTopic(*namespace, *t), |
|
|
Topic: topic.NewTopic(*namespace, *t), |
|
|
CreateTopic: true, |
|
|
|
|
|
CreateTopicPartitionCount: int32(*partitionCount), |
|
|
|
|
|
|
|
|
PartitionCount: int32(*partitionCount), |
|
|
Brokers: strings.Split(*seedBrokers, ","), |
|
|
Brokers: strings.Split(*seedBrokers, ","), |
|
|
PublisherName: *clientName, |
|
|
PublisherName: *clientName, |
|
|
} |
|
|
} |
|
|