mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-28 11:40:11 +03:00
group-store: only run rebuild once
This commit is contained in:
parent
563aed6b7f
commit
9316aebec7
@ -41,6 +41,7 @@
|
|||||||
state-one
|
state-one
|
||||||
state-two
|
state-two
|
||||||
state-three
|
state-three
|
||||||
|
state-four
|
||||||
==
|
==
|
||||||
::
|
::
|
||||||
+$ state-zero
|
+$ state-zero
|
||||||
@ -61,9 +62,15 @@
|
|||||||
=groups
|
=groups
|
||||||
wait=(set ship)
|
wait=(set ship)
|
||||||
==
|
==
|
||||||
|
::
|
||||||
|
+$ state-four
|
||||||
|
$: %4
|
||||||
|
=groups
|
||||||
|
wait=(set ship)
|
||||||
|
==
|
||||||
--
|
--
|
||||||
::
|
::
|
||||||
=| state-three
|
=| state-four
|
||||||
=* state -
|
=* state -
|
||||||
::
|
::
|
||||||
%- agent:dbug
|
%- agent:dbug
|
||||||
@ -84,10 +91,15 @@
|
|||||||
=| cards=(list card)
|
=| cards=(list card)
|
||||||
|^
|
|^
|
||||||
?- -.old
|
?- -.old
|
||||||
|
%4 [(flop cards) this(state old)]
|
||||||
|
::
|
||||||
%3
|
%3
|
||||||
:_ this(state old)
|
%_ $
|
||||||
|
old [%4 +.old]
|
||||||
|
cards
|
||||||
:_ cards
|
:_ cards
|
||||||
[%pass /pyre/rebuild %agent [our dap]:bowl %poke noun+!>(%rebuild)]
|
[%pass /pyre/rebuild %agent [our dap]:bowl %poke noun+!>(%rebuild)]
|
||||||
|
==
|
||||||
::
|
::
|
||||||
%2
|
%2
|
||||||
%_ $
|
%_ $
|
||||||
@ -391,8 +403,8 @@
|
|||||||
|= arc=*
|
|= arc=*
|
||||||
^- (quip card _state)
|
^- (quip card _state)
|
||||||
|^
|
|^
|
||||||
=/ sty=state-three
|
=/ sty=state-four
|
||||||
[%3 (remake-groups ;;((tree [resource tree-group]) +.arc)) ~]
|
[%4 (remake-groups ;;((tree [resource tree-group]) +.arc)) ~]
|
||||||
:_ sty
|
:_ sty
|
||||||
%+ roll ~(tap by groups.sty)
|
%+ roll ~(tap by groups.sty)
|
||||||
|= [[rid=resource grp=group] out=(list card)]
|
|= [[rid=resource grp=group] out=(list card)]
|
||||||
|
Loading…
Reference in New Issue
Block a user