Skip to content

Commit

Permalink
Goroutine leak async consumer fixes #231
Browse files Browse the repository at this point in the history
Signed-off-by: Sotirios Mantziaris <s.mantziaris@thebeat.co>
  • Loading branch information
mantzas authored Oct 25, 2018
1 parent 0fcaed6 commit 9cc72d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions async/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ func (c *Component) processing(ctx context.Context) error {
if err != nil {
return errors.Wrap(err, "failed to create consumer")
}
defer cns.Close()
c.info["consumer"] = cns.Info()

chMsg, chErr, err := cns.Consume(ctx)
Expand Down

0 comments on commit 9cc72d4

Please sign in to comment.