harlow / kinesis-consumer

Golang library for consuming Kinesis stream data
MIT License
264 stars 90 forks source link

Run initial scan immediately #123

Closed jtackaberry closed 4 years ago

jtackaberry commented 4 years ago

Rather than starting the shard scan loop only to then begin waiting for the next scan tick before fetching any data, do the first poll immediately, and then wait.

This PR splits out this logic from #122.