Skip to content

Conversation

hannahhoward
Copy link
Contributor

Goal

Fix a bug where:

  • 2 events are in queue
  • 1 processed
  • nextStep is nil
  • never executes processing next event if no additional events arrive

Implementation

  • need to write to stageDone channel
  • at this point, easiest to just put conditional for nil nextStep inside goroutine

so that a handler with a nil step will still process further events if blocked, write to stagedone
Copy link
Contributor

@ingar ingar left a comment

Choose a reason for hiding this comment

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

Nil checks. 👍

@hannahhoward hannahhoward merged commit f2f9516 into master Mar 3, 2020
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.

2 participants