bsm / sarama-cluster

Cluster extensions for Sarama, the Go client library for Apache Kafka 0.9 [DEPRECATED]
MIT License
1.01k stars 222 forks source link

go get error #300

Closed kazaff closed 5 years ago

kazaff commented 5 years ago

Hi there~ When I install ths library, I got error message:

go get github.com/bsm/sarama-cluster
# github.com/bsm/sarama-cluster
.go/src/github.com/bsm/sarama-cluster/consumer.go:452:59: c.client.config.Config.Consumer.Offsets.CommitInterval undefined (type struct { AutoCommit struct { Enable bool; Interval time.Duration }; Initial int64; Retention time.Duration; Retry struct { Max int } } has no field or method CommitInterval)

My GO version: 1.13

What can I do?

kazaff commented 5 years ago

https://sourcegraph.com/github.com/Shopify/sarama@master/-/blob/config.go#L340:3

The latest version of Sarama does not define CommitInterval...

aoniboy commented 5 years ago

yes the latest version
Renamed Consumer.Offsets.AutoCommitEnable to Consumer.Offsets.AutoCommit.Enable. Renamed Consumer.Offsets.CommitInteval to Consumer.Offsets.AutoCommit.Inteval

dim commented 5 years ago

Please note: https://github.com/bsm/sarama-cluster#deprecation-notice