mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-09-20 15:08:34 +03:00
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:
parent
cd125fc71f
commit
2c915af179
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user