|
@@ -178,7 +178,7 @@ func (c *Consumer) ExpectConsumePartition(topic string, partition int32, offset
|
|
|
// Errors and Messages channel, you should specify what values will be provided on these
|
|
// Errors and Messages channel, you should specify what values will be provided on these
|
|
|
// channels using YieldMessage and YieldError.
|
|
// channels using YieldMessage and YieldError.
|
|
|
type PartitionConsumer struct {
|
|
type PartitionConsumer struct {
|
|
|
- highWaterMarkOffset int64
|
|
|
|
|
|
|
+ highWaterMarkOffset int64 // must be at the top of the struct because https://golang.org/pkg/sync/atomic/#pkg-note-BUG
|
|
|
l sync.Mutex
|
|
l sync.Mutex
|
|
|
t ErrorReporter
|
|
t ErrorReporter
|
|
|
topic string
|
|
topic string
|