-
Notifications
You must be signed in to change notification settings - Fork 22
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 nested nodes in commits #385
Conversation
Closes issue #380
I did this originally but didn't notice we were passing the same volatile iris map to both retract-flakes and assert-flakes, so probably not safe to parallelize.
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.
🧾
{:keys [flakes pid sid]} (<? (assert-flakes db assert t-new iris refs)) | ||
all-flakes (-> (empty (get-in db [:novelty :spot])) | ||
(into (<? retract-flakes)) | ||
(into retract-flakes) |
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 know the <?
for retracts looked misplaced as it was, but it was intentional.
Its purpose was to run the fairly costly assert-flakes
and retract-flakes
in parallel on different threads, as opposed to serially.
This change makes it run serially.
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.
Fixes #380
The whole fix ended up being 12b59bc. The rest of the commits are small things I or @bplatz noticed along the way.
And since I had to lookup how to run one test in isolation for this, I added a note to the README about it.