Skip to content

Conversation

@carlosms
Copy link
Contributor

There is a bug in the memory queue. It does not block on Next(), instead it returns a nil job.

If next returns nil, nil, this if condition is never true and Next returns a nil job, instead of blocking until the queue has a new job.

Digging a bit I found these two commits, that as far as I can see can be safely reverted:

65798d3
6757b6d

cc @erizocosmico

This reverts commits
65798d3
6757b6d

Signed-off-by: Carlos Martín <[email protected]>
@jfontan jfontan requested a review from a team September 27, 2018 17:47
@jfontan jfontan merged commit 304ab28 into src-d:master Sep 28, 2018
jfontan added a commit to jfontan/go-queue that referenced this pull request Oct 3, 2018
This adds the possibility to create memory queues that do not block when
the queue EOFs. This mimics the behavior before src-d#13 that is expected by
other projects.

Signed-off-by: Javi Fontan <[email protected]>
@jfontan jfontan mentioned this pull request Oct 3, 2018
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.

6 participants