a8m / kinesis-producer

An aggregated records producer for Amazon Kinesis
MIT No Attribution
149 stars 51 forks source link

Fix #5. Only drain aggregator when it contains data #6

Closed aelse closed 6 years ago

aelse commented 6 years ago

Fixes a race condition where multiple goroutines evaluate whether aggregator is ready to drain and then attempt to drain it.