rever the no-op checkpoint

This commit is contained in:
Harlow Ward 2019-06-02 17:29:22 -07:00
parent 2ab5ec4031
commit 4fd29c54ff

View file

@ -23,11 +23,12 @@ func New(streamName string, opts ...Option) (*Consumer, error) {
return nil, fmt.Errorf("must provide stream name")
}
// new consumer with noop group, counter, and logger
// new consumer with no-op checkpoint, counter, and logger
c := &Consumer{
streamName: streamName,
initialShardIteratorType: kinesis.ShardIteratorTypeLatest,
counter: &noopCounter{},
checkpoint: &noopCheckpoint{},
logger: &noopLogger{
logger: log.New(ioutil.Discard, "", log.LstdFlags),
},