Skip to content

Commit

Permalink
Merge pull request influxdata#1930 from influxdata/aa_kafka_1927
Browse files Browse the repository at this point in the history
added default as name for the default kafka config
  • Loading branch information
aanthony1243 authored May 17, 2018
2 parents 18e4ce7 + 7d40d2f commit 49d8eab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/kafka/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const (
DefaultTimeout = 10 * time.Second
DefaultBatchSize = 100
DefaultBatchTimeout = 1 * time.Second
DefaultID = "default"
)

type Config struct {
Expand Down Expand Up @@ -45,7 +46,7 @@ type Config struct {
}

func NewConfig() Config {
return Config{}
return Config{ID: DefaultID}
}

func (c Config) Validate() error {
Expand Down

0 comments on commit 49d8eab

Please sign in to comment.