Skip to content

Commit

Permalink
Update for dep change
Browse files Browse the repository at this point in the history
  • Loading branch information
Mongey committed Jan 14, 2018
1 parent b4f8052 commit 1a19c20
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions kafka/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func ConfigForTopic(topic string, brokers []string) (map[string]string, error) {
request := &sarama.DescribeConfigsRequest{
Resources: []*sarama.Resource{
&sarama.Resource{
T: sarama.TopicResource,
Type: sarama.TopicResource,
Name: topic,
ConfigNames: []string{"segment.ms"},
},
Expand Down Expand Up @@ -121,13 +121,10 @@ func configToResources(topic string, config map[string]*string) []*sarama.AlterC

for k, v := range config {
res[i] = &sarama.AlterConfigsResource{
T: sarama.TopicResource,
Type: sarama.TopicResource,
Name: topic,
ConfigEntries: []*sarama.ConfigEntryKV{
&sarama.ConfigEntryKV{
Name: k,
Value: *v,
},
ConfigEntries: map[string]*string{
k: v,
},
}
i++
Expand Down

0 comments on commit 1a19c20

Please sign in to comment.