Skip to content

Commit

Permalink
Merge pull request #215 from heltonmarx/cleanup_producer
Browse files Browse the repository at this point in the history
Remove unused channels
  • Loading branch information
frairon authored Jan 6, 2020
2 parents 1cf2c41 + 73438ef commit 2d7e458
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions kafka/producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ type Producer interface {

type producer struct {
producer sarama.AsyncProducer
stop chan bool
done chan bool
wg sync.WaitGroup
}

Expand All @@ -31,8 +29,6 @@ func NewProducer(brokers []string, config *sarama.Config) (Producer, error) {

p := producer{
producer: aprod,
stop: make(chan bool),
done: make(chan bool),
}

p.run()
Expand Down

0 comments on commit 2d7e458

Please sign in to comment.