Skip to content

Commit

Permalink
Set ConfigEntry.Source to default for KafkaVersions <= 0 when applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
sladkoff committed Jan 31, 2020
1 parent 67d222f commit 51ba5d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions describe_configs_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ func (r *ConfigEntry) decode(pd packetDecoder, version int16) (err error) {
return err
}
r.Default = defaultB
if defaultB {
r.Source = SourceDefault
}
} else {
source, err := pd.getInt8()
if err != nil {
Expand Down

0 comments on commit 51ba5d7

Please sign in to comment.