Skip to content

Commit

Permalink
Update sarama to support Kafka 1.0.0 (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
bai authored and Todd Palino committed Dec 14, 2017
1 parent 946a425 commit e3a1493
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.14.0"
version = "1.15.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 @@ -42,6 +42,8 @@ func parseKafkaVersion(kafkaVersion string) sarama.KafkaVersion {
return sarama.V0_10_2_0
case "0.11.0", "0.11.0.1", "0.11.0.2":
return sarama.V0_11_0_0
case "1.0.0":
return sarama.V1_0_0_0
default:
panic("Unknown Kafka Version: " + kafkaVersion)
}
Expand Down

0 comments on commit e3a1493

Please sign in to comment.