Skip to content

Commit dec7166

Browse files
authored
Merge pull request #34 from midN/compact-flag-fix
Fix hardcoded compact
2 parents eeec71b + e5cf815 commit dec7166

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmd/kaf/topic.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,10 @@ var createTopicCmd = &cobra.Command{
175175
panic(err)
176176
}
177177

178-
compact := "compact"
178+
compact := "delete"
179+
if compactFlag {
180+
compact = "compact"
181+
}
179182
err = admin.CreateTopic(args[0], &sarama.TopicDetail{
180183
NumPartitions: partitionsFlag,
181184
ReplicationFactor: replicasFlag,

0 commit comments

Comments
 (0)