graph-store: run update log in correct order

tapping an ordered map returns a list with the smallest keys first.
However, graph-store's update-log is defined backwards, such that the
list will have the most recent updates in the front of the list. We
therefore flop the update log before iterating over it, in order to
process the updates in the order they occurred
This commit is contained in:
Liam Fitzgerald 2020-12-15 21:34:22 +10:00
parent cd125fc71f
commit 2c915af179
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -593,7 +593,7 @@
?< (~(has by archive) resource)
?> (~(has by graphs) resource)
=/ updates=(list [=time upd=logged-update:store])
(tap:orm-log update-log)
(flop (tap:orm-log update-log))
=| cards=(list card)
|- ^- (quip card _state)
?~ updates