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
|
||||
=+ !<([~ hash=@uv] arg)
|
||||
=/ url "https://bootstrap.urbit.org/glob-{(scow %uv hash)}.glob"
|
||||
;< =cord bind:m (fetch-cord:strandio url)
|
||||
~| failed-glob+hash
|
||||
=+ ;;(=glob:glob (cue cord))
|
||||
;< =glob:glob bind:m
|
||||
%+ (retry:strandio ,glob:glob) `5
|
||||
=/ n (strand ,(unit glob:glob))
|
||||
;< =cord bind:n (fetch-cord:strandio url)
|
||||
%- pure:n
|
||||
%- mole
|
||||
|.
|
||||
;;(=glob:glob (cue cord))
|
||||
(pure:m !>(glob))
|
||||
|
Loading…
Reference in New Issue
Block a user