Skip to content

Commit

Permalink
repl: reader quote when passing handler to the server - donut
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalli-johnny committed Sep 5, 2024
1 parent 76bf890 commit 47a0ab5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/service-repl-workflow/donut-system.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ The event log publisher and http service have no intrinsic relationship, so orde
:http {:server
#::donut{:start (fn http-kit-run-server
[{{:keys [handler options]} ::donut/config}]
(http-server/run-server handler options))
(http-server/run-server #'handler options))
:stop (fn http-kit-stop-server
[{::donut/keys [instance]}]
(instance))
Expand All @@ -120,6 +120,9 @@ The event log publisher and http service have no intrinsic relationship, so orde
:handler (router/app (donut/ref [:env :persistence]))}}})
```

!!! HINT "Quote handler function to evaluate changes"
Use `#'` reader quote when passing the `handler` function to the server so that changes to the code called by the handler function can be updated by evaluating those changes in the REPL.


## Start the system

Expand Down

0 comments on commit 47a0ab5

Please sign in to comment.