Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update subsciptions documentation to correctly close channel #2753

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

leangaurav
Copy link
Contributor

@leangaurav leangaurav commented Aug 8, 2023

Describe your PR and link to any relevant issues.

Added missing channel cleanup in Subscriptions example.
The channel should be closed after the go routine writing to channel exits. Hence added defer close(ch)

I have:

  • Added tests covering the bug / feature (see testing)
  • Updated any relevant documentation (see docs)

@coveralls
Copy link

coveralls commented Aug 8, 2023

Coverage Status

coverage: 75.777%. remained the same when pulling addbf6d on leangaurav:master into 2d8673a on 99designs:master.

@StevenACoffman StevenACoffman merged commit d6270e4 into 99designs:master Aug 9, 2023
@StevenACoffman
Copy link
Collaborator

Thanks! Looking forward to your next PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants