Skip to content

Commit

Permalink
Merge pull request #447 from haeuserd/kafka-2.0
Browse files Browse the repository at this point in the history
Upgrade sarama to support Kafka 2.0.0 (#440)
  • Loading branch information
bai authored Oct 2, 2018
2 parents 12e681a + 3f888cd commit 19bafdc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[[constraint]]
name = "github.com/Shopify/sarama"
version = "1.17.0"
version = "1.18.0"

[[constraint]]
name = "go.uber.org/zap"
Expand Down
2 changes: 2 additions & 0 deletions core/internal/helpers/sarama.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ func parseKafkaVersion(kafkaVersion string) sarama.KafkaVersion {
return sarama.V1_0_0_0
case "1.1.0":
return sarama.V1_1_0_0
case "2.0.0":
return sarama.V2_0_0_0
default:
panic("Unknown Kafka Version: " + kafkaVersion)
}
Expand Down

0 comments on commit 19bafdc

Please sign in to comment.