Skip to content

Commit

Permalink
Merge branch 'staging' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesacklin authored Jan 7, 2025
2 parents b24d40d + fbee4ec commit 6d6ecac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions desk/app/channels-server.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -1155,15 +1155,13 @@
++ run-hooks
|= [=event:h =nest:c default=cord]
^- [(each event:h tang) _cor]
=; [result=(each event:h tang) effects=(list effect:h)]
[result (run-hook-effects effects nest)]
=| effects=(list effect:h)
=/ order (~(gut by order.hooks) nest ~)
=/ channel `[nest (~(got by v-channels) nest)]
=/ =bowl:h (get-hook-bowl channel *config:h)
|-
?~ order
[&+event effects]
[&+event (run-hook-effects effects nest)]
=* next $(order t.order)
=/ hook (~(got by hooks.hooks) i.order)
=. bowl bowl(hook hook, config (~(gut by config.hook) nest ~))
Expand All @@ -1174,7 +1172,7 @@
=. effects (weld effects effects.u.return)
=. hooks.hooks (~(put by hooks.hooks) i.order hook(state new-state.u.return))
?: ?=(%denied -.result)
[|+~[(fall msg.result default)] effects]
[|+~[(fall msg.result default)] (run-hook-effects effects nest)]
=. event event.result
next
++ wake-hook
Expand Down
4 changes: 2 additions & 2 deletions desk/ted/hook/schedule.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
(pure:m !>(~))
;< now=time bind:m get-time:s
=/ fires-at
?^ next.schedule.response
(add now schedule.response)
?@ schedule.response (add now schedule.response)
next.schedule.response
%- (slog (crip "starting hook {<id.response>}, scheduled to run on {<origin.response>} at {<fires-at>}") ~)
(pure:m !>(~))
+$ action
Expand Down

0 comments on commit 6d6ecac

Please sign in to comment.