Skip to content

Close consumer message channel when consumer closed. #387

@cocotyty

Description

@cocotyty

Is your feature request related to a problem? Please describe.

lots of consumer code maybe like this:

for msg := range consumer.Chan(){
   // consume msg
}

if not close channel when consumer close, maybe cause goroutine leak.

Describe the solution you'd like

when close a consumer,close the consumer's message channel.

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions