-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix node construction queue error #6480
Conversation
dc37657
to
6e6a7c3
Compare
153b839
to
07c7e0e
Compare
07c7e0e
to
2ef67c9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM modulo the limit (ensures we avoid doing unecessary work) and the abse32 encoding
@@ -124,7 +80,26 @@ func (q *Queue) work() { | |||
|
|||
for { | |||
if c == cid.Undef { | |||
k, c = q.nextEntry() | |||
head, e := q.getQueueHead() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally, we'd:
- Open a query.
- Iterate over the query to the end.
- Open a new query when we get the next CID.
(but we can punt on that)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got you. I'll keep that in mind.
1ff9d53
to
143e415
Compare
@Stebalien this should be good to go. |
Fixes #6467, by implementing a very simple version of #6260.