mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-30 10:46:11 +03:00
graph-join: crash on backoff and fix scry mold
This commit is contained in:
parent
69704c6a80
commit
3bf03ffc9b
@ -31,13 +31,14 @@
|
|||||||
(en-path:resource rid)
|
(en-path:resource rid)
|
||||||
=/ hold=@dr ~s0..8000
|
=/ hold=@dr ~s0..8000
|
||||||
|- ^- form:m
|
|- ^- form:m
|
||||||
|
?> (lte hold ~m5)
|
||||||
=* loop $
|
=* loop $
|
||||||
;< u-group=(unit group) bind:m
|
;< u-group=(unit group) bind:m
|
||||||
(scry:strandio ,(unit group) (weld /gx/group-store/groups (snoc pax %noun)))
|
(scry:strandio ,(unit group) (weld /gx/group-store/groups (snoc pax %noun)))
|
||||||
?^ u-group
|
?^ u-group
|
||||||
(pure:m ~)
|
(pure:m ~)
|
||||||
;< ~ bind:m (sleep:strandio hold)
|
;< ~ bind:m (sleep:strandio hold)
|
||||||
=. hold (min (mul hold 2) ~m5)
|
=. hold (mul hold 2)
|
||||||
loop
|
loop
|
||||||
::
|
::
|
||||||
++ wait-for-md
|
++ wait-for-md
|
||||||
@ -48,13 +49,14 @@
|
|||||||
(en-path:resource rid)
|
(en-path:resource rid)
|
||||||
=/ hold=@dr ~s0..8000
|
=/ hold=@dr ~s0..8000
|
||||||
|- ^- form:m
|
|- ^- form:m
|
||||||
|
?> (lte hold ~m5)
|
||||||
=* loop $
|
=* loop $
|
||||||
;< groups=(set path) bind:m
|
;< groups=(jug path md-resource) bind:m
|
||||||
(scry:strandio ,(set path) /gy/metadata-store/group-indices)
|
(scry:strandio ,(jug path md-resource) /gy/metadata-store/group-indices)
|
||||||
?: (~(has in groups) pax)
|
?: (~(has by groups) pax)
|
||||||
(pure:m ~)
|
(pure:m ~)
|
||||||
;< ~ bind:m (sleep:strandio hold)
|
;< ~ bind:m (sleep:strandio hold)
|
||||||
=. hold (min (mul hold 2) ~m5)
|
=. hold (mul hold 2)
|
||||||
loop
|
loop
|
||||||
--
|
--
|
||||||
::
|
::
|
||||||
|
Loading…
Reference in New Issue
Block a user