defer initial http request from +prep

This commit is contained in:
Joe Bryan 2018-06-28 20:03:16 -04:00
parent c8c90bc587
commit 26b10e79b5

View File

@ -1171,6 +1171,7 @@
:: ::
+= card += card
$% [%hiss wire [~ ~] %httr %hiss hiss:eyre] $% [%hiss wire [~ ~] %httr %hiss hiss:eyre]
[%wait wire @da]
[%well wire path (unit mime)] [%well wire path (unit mime)]
[%rule wire %cert (unit [wain wain])] [%rule wire %cert (unit [wain wain])]
== ==
@ -1585,7 +1586,10 @@
:: ::
:: +retry: retry effect after timeout :: +retry: retry effect after timeout
:: ::
++ retry !! ++ retry
|= [wir=wire wen=@da]
:: XX validate wire and date
(emit %wait [%acme wir] wen)
-- --
:: |event: accept event, emit next effect(s) :: |event: accept event, emit next effect(s)
:: ::
@ -1833,8 +1837,13 @@
:: +retry: retry effect after timeout :: +retry: retry effect after timeout
:: ::
++ retry ++ retry
:: XX implement wire parsing / next effect |= wir=wire
!! ^+ this
?+ wir
~&(unknown-retry+wir this)
:: XX do the needful
[%directory ~] directory:effect
==
-- --
:: +sigh-tang: handle http request failure :: +sigh-tang: handle http request failure
:: ::
@ -1873,6 +1882,14 @@
%finalize-trial finalize-trial:event %finalize-trial finalize-trial:event
:: XX delete-trial? :: XX delete-trial?
== ==
:: +wake: timer wakeup event
::
++ wake
|= [wir=wire ~]
^- (quip move _this)
~& [%wake wir]
?> ?=([%acme *] wir)
abet:(retry:event t.wir)
:: +poke-acme-order: create new order for a set of domains :: +poke-acme-order: create new order for a set of domains
:: ::
++ poke-acme-order ++ poke-acme-order
@ -1928,7 +1945,7 @@
++ init ++ init
=/ url =/ url
'https://acme-staging-v02.api.letsencrypt.org/directory' 'https://acme-staging-v02.api.letsencrypt.org/directory'
=< directory:effect =< (retry:effect /directory +(now.bow))
%= this %= this
bas (need (de-purl:html url)) bas (need (de-purl:html url))
act [(rekey eny.bow) ~] act [(rekey eny.bow) ~]