mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-25 16:05:27 +03:00
Merge pull request #5013 from urbit/lf/failed-glob
ted/glob: add exponential retry
This commit is contained in:
commit
617b97b450
@ -7,7 +7,12 @@
|
|||||||
^- form:m
|
^- form:m
|
||||||
=+ !<([~ hash=@uv] arg)
|
=+ !<([~ hash=@uv] arg)
|
||||||
=/ url "https://bootstrap.urbit.org/glob-{(scow %uv hash)}.glob"
|
=/ url "https://bootstrap.urbit.org/glob-{(scow %uv hash)}.glob"
|
||||||
;< =cord bind:m (fetch-cord:strandio url)
|
;< =glob:glob bind:m
|
||||||
~| failed-glob+hash
|
%+ (retry:strandio ,glob:glob) `5
|
||||||
=+ ;;(=glob:glob (cue cord))
|
=/ n (strand ,(unit glob:glob))
|
||||||
|
;< =cord bind:n (fetch-cord:strandio url)
|
||||||
|
%- pure:n
|
||||||
|
%- mole
|
||||||
|
|.
|
||||||
|
;;(=glob:glob (cue cord))
|
||||||
(pure:m !>(glob))
|
(pure:m !>(glob))
|
||||||
|
Loading…
Reference in New Issue
Block a user