rever the no-op checkpoint
This commit is contained in:
parent
2ab5ec4031
commit
4fd29c54ff
1 changed files with 2 additions and 1 deletions
|
|
@ -23,11 +23,12 @@ func New(streamName string, opts ...Option) (*Consumer, error) {
|
||||||
return nil, fmt.Errorf("must provide stream name")
|
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{
|
c := &Consumer{
|
||||||
streamName: streamName,
|
streamName: streamName,
|
||||||
initialShardIteratorType: kinesis.ShardIteratorTypeLatest,
|
initialShardIteratorType: kinesis.ShardIteratorTypeLatest,
|
||||||
counter: &noopCounter{},
|
counter: &noopCounter{},
|
||||||
|
checkpoint: &noopCheckpoint{},
|
||||||
logger: &noopLogger{
|
logger: &noopLogger{
|
||||||
logger: log.New(ioutil.Discard, "", log.LstdFlags),
|
logger: log.New(ioutil.Discard, "", log.LstdFlags),
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue