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

Handle nil closers #726

Merged
merged 3 commits into from
Feb 26, 2019
Merged

Handle nil closers #726

merged 3 commits into from
Feb 26, 2019

Conversation

martinmr
Copy link
Contributor

@martinmr martinmr commented Feb 26, 2019

Change the methods Done and HasBeenNotified to be able to handle a nil closer.

Also fix a flaky test.


This change is Reviewable

The closer in this function is required to be non-nil since it's used
inside a select block. This changes creates a dummy closer with an
initial count of zero if the passed closer is nil.
@martinmr martinmr requested a review from manishrjain February 26, 2019 20:12
@martinmr martinmr changed the title Inside process, create dummy closer when passed a nil closer. Handle nil closers Feb 26, 2019
Copy link
Contributor

@manishrjain manishrjain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@martinmr martinmr merged commit 8115aed into master Feb 26, 2019
@martinmr martinmr deleted the martinmr/watermark-nil-closer branch February 26, 2019 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants